-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: track machine skew/not synchronising
- Loading branch information
1 parent
57c15da
commit daa7773
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |