scrape interval vs exporter internals

21 views
Skip to first unread message

dc3o

unread,
Mar 22, 2021, 10:27:34 AM3/22/21
to Prometheus Users
Considering that scrape interval is controller by Prometheus configuration, how do we configure how often some exporter pulls and exposes the metrics? For instance - say that scrape interval is 60s - how do we ensure that metrics provided are representing values in the exact moment?

Stuart Clark

unread,
Mar 22, 2021, 10:56:42 AM3/22/21
to dc3o, Prometheus Users
The normal mechanism is to trigger a fetch/generate of any metrics that
aren't continuous when a scrape comes in. If needed you might then cache
those values within the exporter for a period if they are expensive/slow
to produce.

--
Stuart Clark
Reply all
Reply to author
Forward
0 new messages