junos_exporter
junos_exporter copied to clipboard
Target scrape timeout
I'd like to set a hard scrape timeout, applied to every target. When one device takes more time it wouldnt break the scrape for other devices. This happens on fast scraping intervals for example if one target dies or a device takes longer due to load.
It also would allows to use very tight scraping intervals down to 15sec.
I had a problem along the same lines, with some functions of the exporter taking a long time (firewall/policer statistics) I ended up scaling the exporter horizontally instead, so to keep an agressive (10 sec) scrape_interval on my most important metrics (interfaces, bgp and chassis), and a 1 minute scrape_interval on the slower ones. Depending on your tooling, it may be easier - and more stable - to approach the problem the same way... basically having an exporter for each target.
Thank you for your answer, i thought about the same and think, thats the way to go, although that feature would be still a nice to have.
I got the same issue if single device take too long then it takes down the rest with it. I have over 200 devices and it does not look pretty with scaling.