Will a very long scrape effect scraping of other targets?

15 views
Skip to first unread message

D L

unread,
Oct 29, 2020, 4:31:54 PM10/29/20
to Prometheus Users
Hello. We have one pod, amongst other pods on kubernetes, that aggregates metrics from some of the deployments. Scraping this particular pod takes 75 seconds. 

Are there any implications to this?  While this scrape is long running will it affect scrape time of other pods? All other pods take few seconds to scrape and we have scrape interval configured to 30s. Thanks. 

Brian Brazil

unread,
Oct 29, 2020, 4:53:43 PM10/29/20
to D L, Prometheus Users
On Thu, 29 Oct 2020 at 20:32, D L <mrdo...@gmail.com> wrote:
Hello. We have one pod, amongst other pods on kubernetes, that aggregates metrics from some of the deployments. Scraping this particular pod takes 75 seconds. 

Are there any implications to this? 

No, scrapes are independent.
 
While this scrape is long running will it affect scrape time of other pods? All other pods take few seconds to scrape and we have scrape interval configured to 30s. Thanks. 

A 30s scrape interval means at most a 30s timeout (default is 10s) so this scrape will always fail due to timeout. I'd suggest looking to make that pod faster, 75s is on the long side.

--
Reply all
Reply to author
Forward
0 new messages