Skip to content

Commit

Permalink
[ATMOSPHERE-367] Add the NodeTimeSkewDetected alert (#2151)
Browse files Browse the repository at this point in the history
Depends-On: #2150

Reviewed-by: Mohammed Naser <[email protected]>
  • Loading branch information
larainema authored Nov 29, 2024
1 parent 9956897 commit cfea8c4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
33 changes: 33 additions & 0 deletions roles/kube_prometheus_stack/files/jsonnet/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,36 @@ tests:
exp_annotations:
summary: "Nova service group down"
description: "All instances of a specific Nova service have been down for more than 5 minutes."

- interval: 1m
input_series:
- series: 'node_time_seconds{instance="instance1", job="node"}'
values: '0 60 120 180 240 300'
- series: 'node_time_seconds{instance="instance2", job="node"}'
values: '1 61 121 181 241 301'
- series: 'node_time_seconds{instance="instance3", job="node"}'
values: '2 62 122 182 242 302'
alert_rule_test:
- eval_time: 5m
alertname: NodeTimeSkewDetected
exp_alerts:
- exp_labels:
severity: P3
instance: instance3
job: node
exp_annotations:
summary: "Node instance3 has a time difference."
description: "Node instance3 has a time difference 2."

- interval: 1m
input_series:
- series: 'node_time_seconds{instance="instance1", job="node"}'
values: '0 60 120 180 240 300'
- series: 'node_time_seconds{instance="instance2", job="node"}'
values: '0 60 120 180 240 300'
- series: 'node_time_seconds{instance="instance3", job="node"}'
values: '0 60 120 180 240 300'
alert_rule_test:
- eval_time: 5m
alertname: NodeTimeSkewDetected
exp_alerts: []

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cfea8c4

Please sign in to comment.