On 02/03/2021 16:43, John Dexter wrote:
Hello all,

I was thinking that if you use the same scrape-interval for many targets, doesn't this mean every 15/30/60s your Prometheus server sends out a huge barrage of requests all at once, potentially to many modules on the same server?

I wondered if this can lead to any issues with network spikes and so on, and if Prometheus allows/encourages all the various scrapes to be staggered slightly so there is a constant stream of polls not so 'lumpy'? Maybe it naturally works this way anyway, that polls are run sequentially rather than in parallel?

Prometheus will ensure that a specific target is scraped every 15/30/60s as configured, but other than the period between scrapes being fixed the exact "second past the minute" will differ between targets. So for example if you had two targets which had a scrape interval of 60s, you might find that the scraping happened at 10s past the minute for target 1 and 40s past the minute for target 2.

--
Stuart Clark

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/8bf40a13-3e28-c14a-723c-91fc34df756a%40Jahingo.com.

Reply via email to