What is the maximum latency for a metric with a timestamp?

14 views
Skip to first unread message

Rodolphe Ghio

unread,
Aug 26, 2020, 11:32:32 AM8/26/20
to Prometheus Users
Hello,

I work with Prometheus and I saw that we could expose him to metrics with a timestamp. I did some tests and I saw that a latency of 1 hour worked but not two hours. Do you know the maximum latency for Prometheus to still accept metrics?

Best regards.

Brian Brazil

unread,
Aug 26, 2020, 12:03:58 PM8/26/20
to Rodolphe Ghio, Prometheus Users
On Wed, 26 Aug 2020 at 16:32, Rodolphe Ghio <rodolp...@gmail.com> wrote:
Hello,

I work with Prometheus and I saw that we could expose him to metrics with a timestamp. I did some tests and I saw that a latency of 1 hour worked but not two hours. Do you know the maximum latency for Prometheus to still accept metrics?

It's an hour, generally you should not be exposing metrics with timestamps though as it has issues such as not working with staleness.
 
--

Brian Candler

unread,
Aug 26, 2020, 1:25:22 PM8/26/20
to Prometheus Users
If you're trying to record the time that some event happened, e.g. the last time that a job ran, then it's probably better to export the timestamp itself as a separate metric (value = Unix time seconds)
Reply all
Reply to author
Forward
0 new messages