Hi,

On 4/12/20 1:05 AM, Adso Castro wrote:
> That's the question, there's a metric: *jobs_sent 1728*
> I want to know if that value hasn't changed in 1h for example.
> How do I do that?

changes(jobs_sent[1h]) == 0 could do the trick.

In many cases it might be easier to add an additional metric with the
timestamp of the last change (as they node_exporter's textfile collector
and the pushgateway do). This is easier / more explicit to alert on.

Kind regards,
Christian

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/f5f556e7-2929-cd01-c40a-2e1d999bdd4d%40hoffmann-christian.info.

Reply via email to