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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)