Scrape Interval not working for push gateway

9 views
Skip to first unread message

Kustav Chatterjee

unread,
Jul 6, 2021, 11:34:20 PM7/6/21
to Prometheus Users
My pushgateway is getting new value every 15m so I have set the interval as 15m. As expected there should be 1 value in every 15m but as I can see it's stretching 5m for every single value. Please find the screenshot.
124639619-0125e780-deaa-11eb-8cb4-7e9772019de1.png124639489-d9368400-dea9-11eb-9405-d3241bfae5a7.png

Stuart Clark

unread,
Jul 7, 2021, 2:03:30 AM7/7/21
to Kustav Chatterjee, Prometheus Users
On 07/07/2021 04:34, Kustav Chatterjee wrote:
> My pushgateway is getting new value every 15m so I have set the
> interval as 15m. As expected there should be 1 value in every 15m but
> as I can see it's stretching 5m for every single value. Please find
> the screenshot.


This is due to staleness. The maximum scrape interval for Prometheus
should be no more than about 2 minutes, so I'd suggest adjusting your
configuration to scrape the push gateway at that frequency (no problem
with only pushing to the gateway every 15 minutes).

--
Stuart Clark

Reply all
Reply to author
Forward
0 new messages