ALERT TimeDrift
IF abs(scalar(node_time{instance="ntp.mydomain.com:9100"}) - node_time{job="prometheus"}) > 10
FOR 5mWe're trying to monitor time difference between our many VM servers and our main NTP server to alert on major differences. The querey in the following rule seems to do this but once it starts the alert never clears. I'm sure there's something simple that's wrong, but can't seem to find an acceptable alternative. I've tried using scalar() and offset in various forms to no success. Any suggestions on how to modify the alert so that it clears or on a different, better approach to the alert?
Dan EvansALERT TimeDrift IF abs(scalar(node_time{instance="ntp.mydomain.com:9100"}) - node_time{job="prometheus"}) > 10 FOR 5m
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6765dd52-6972-452e-b71d-1753919faf5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--