Skip to content

Commit

Permalink
feat: track machine skew/not synchronising
Browse files Browse the repository at this point in the history
  • Loading branch information
bdossantos committed Feb 26, 2021
1 parent 57c15da commit daa7773
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions rules/clock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
groups:
- name: clock
rules:
- alert: HostClockSkew
expr: (node_timex_offset_seconds > 0.05 and deriv(node_timex_offset_seconds[5m]) >= 0) or (node_timex_offset_seconds < -0.05 and deriv(node_timex_offset_seconds[5m]) <= 0)
for: 2m
labels:
severity: page
annotations:
summary: Host clock skew (instance {{ $labels.instance }})
description: "Clock skew detected. Clock is out of sync.\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
- alert: HostClockNotSynchronising
expr: min_over_time(node_timex_sync_status[1m]) == 0 and node_timex_maxerror_seconds >= 16
for: 2m
labels:
severity: page
annotations:
summary: Host clock not synchronising (instance {{ $labels.instance }})
description: "Clock not synchronising.\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"

0 comments on commit daa7773

Please sign in to comment.