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