What is the criteria in Prometheus for Age of alerts in ALERTS_FOR_STATE.

15 views
Skip to first unread message

Yagyansh S. Kumar

unread,
Apr 19, 2020, 4:33:23 AM4/19/20
to Prometheus Users
Hi. I want to get the age of my alerts, and have been playing around with ALERTS_FOR_STATE for the same. After converting the Epoch Time to Normal Date-Time, the age that I am getting for the alerts seem to be incorrect for some of the alerts. Also, I can see a lot of my alerts are having the same age, which is not the case. So, what criteria is being used to get that Epoch Time?

Can someone help understanding this discrepancy?

Thanks in advance!

Brian Brazil

unread,
Apr 19, 2020, 5:08:15 AM4/19/20
to Yagyansh S. Kumar, Prometheus Users
On Sun, 19 Apr 2020 at 09:33, Yagyansh S. Kumar <yagyans...@gmail.com> wrote:
Hi. I want to get the age of my alerts, and have been playing around with ALERTS_FOR_STATE for the same. After converting the Epoch Time to Normal Date-Time, the age that I am getting for the alerts seem to be incorrect for some of the alerts. Also, I can see a lot of my alerts are having the same age, which is not the case. So, what criteria is being used to get that Epoch Time?

That metric is an internal implementation detail of how we recover the for state on restart, so you shouldn't really depend on it one way or the other.

Brian
 

Can someone help understanding this discrepancy?

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/15ad2df4-91f2-4fe6-b33b-1dae437c780b%40googlegroups.com.


--

Yagyansh S. Kumar

unread,
Apr 19, 2020, 7:35:43 AM4/19/20
to Prometheus Users
Thanks Brain.

What other way do you suggest to get the accurate age of alerts?


Reply all
Reply to author
Forward
0 new messages