Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client req Count vs Cache count #67

Open
strowi opened this issue Dec 11, 2020 · 0 comments
Open

Client req Count vs Cache count #67

strowi opened this issue Dec 11, 2020 · 0 comments

Comments

@strowi
Copy link

strowi commented Dec 11, 2020

  • Varnish 6.0.7
  • prometheus_varnish_exporter 1.5.2

Hi,

is varnish_main_client_req suppoed to be to total req count? If so this doesn't seem to match up with varnish_main_cache_hit.
Maybe i'm missing something or this is a runtime issue with metrics being generated at different times..:

On a high volume site we get the following:

irate(varnish_main_cache_hit{instance=~"web.*"}[5m]) / irate(varnish_main_client_req{instance=~"web.*"}[5m]) => 

{instance="web03.xyz", job="varnish-exporter",monitor="bm",team="sys"} | 1.225305446262166
{instance="web04.xyz", job="varnish-exporter",monitor="bm",team="sys"} | 1.2207979071288424
{instance="web05.xyz", job="varnish-exporter",monitor="bm",team="sys"} | 1.23918848897923

Which would mean more cache hits than requests?

regards,
strowi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant