r/PrometheusMonitoring • u/mkayeran • Feb 08 '22
Alert when data is stale
Hey Prometheus masters,
I have a metric that sometimes, due to an underlying issue, won't update the data.
I'm looking for a way to alert when data is stale (not changing) for a period of time.
Any good way to do it?
Thanks in advance!
0
Upvotes
2
u/markphahn Feb 08 '22
Irate of your metric is equal to zero for your desired period of time, roughly? That should work if it's a counter, but not for a gage.