aboutsummaryrefslogtreecommitdiff
path: root/docs/node-mixin/alerts/alerts.libsonnet
diff options
context:
space:
mode:
Diffstat (limited to 'docs/node-mixin/alerts/alerts.libsonnet')
-rw-r--r--docs/node-mixin/alerts/alerts.libsonnet38
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/node-mixin/alerts/alerts.libsonnet b/docs/node-mixin/alerts/alerts.libsonnet
index 6c5ca57..6c2ee3e 100644
--- a/docs/node-mixin/alerts/alerts.libsonnet
+++ b/docs/node-mixin/alerts/alerts.libsonnet
@@ -197,6 +197,44 @@
197 severity: 'warning', 197 severity: 'warning',
198 }, 198 },
199 }, 199 },
200 {
201 alert: 'NodeClockSkewDetected',
202 expr: |||
203 (
204 node_timex_offset_seconds > 0.05
205 and
206 deriv(node_timex_offset_seconds[5m]) >= 0
207 )
208 or
209 (
210 node_timex_offset_seconds < 0.05
211 and
212 deriv(node_timex_offset_seconds[5m]) <= 0
213 )
214 ||| % $._config,
215 'for': '10m',
216 labels: {
217 severity: 'warning',
218 },
219 annotations: {
220 summary: 'Clock skew detected.',
221 message: 'Clock on {{ $labels.instance }} is out of sync by more than 300s. Ensure NTP is configured correctly on this host.',
222 },
223 },
224 {
225 alert: 'NodeClockNotSynchronising',
226 expr: |||
227 min_over_time(node_timex_sync_status[5m]) == 0
228 ||| % $._config,
229 'for': '10m',
230 labels: {
231 severity: 'warning',
232 },
233 annotations: {
234 summary: 'Clock not synchronising.',
235 message: 'Clock on {{ $labels.instance }} is not synchronising. Ensure NTP is configured on this host.',
236 },
237 },
200 ], 238 ],
201 }, 239 },
202 ], 240 ],