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

scrape becomes slower with more backends #60

Open
hsmade opened this issue Dec 12, 2019 · 1 comment
Open

scrape becomes slower with more backends #60

hsmade opened this issue Dec 12, 2019 · 1 comment

Comments

@hsmade
Copy link

hsmade commented Dec 12, 2019

  • Varnish 6.3.1
  • prometheus_varnish_exporter 1.5.1

As the metrics are fetched from varnish during a scrape request, the scraping gets slower with more backends. Due to that old backends are not removed (for a while), the number of backends can increase quickly in a CI/CD environment. This causes scrapes to take longer, and take up resources in prometheus.
Generally what you'd want to do in a 'heavy' scraper as this one, is fetching metrics on a Timer.Tick and keeping them. If you fail to get metrics on the next tick, you can empty the cache as well, to signal to prometheus that something failed.

@blackjid
Copy link

@hsmade did you find a way to setup this exporter that improve perfomance on metrics scraping??

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

2 participants