Skip to content

Commit 1c71057

Browse files
committed
Improve watchdog alert
This expression fires the Watchdog alert also if the TSDB is up to date and therefore checks the functionality of the full stack. With `vector(1)`, only alertmanager needs to be functional to fire. So In case of a full TSDB storage, the Watchdog still fires and the lack of new metrics goes unnoticed. Signed-off-by: Andreas Tellenbach <[email protected]>
1 parent defa2bd commit 1c71057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/kubePrometheus-prometheusRule.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
"DeadMansSnitch" integration in PagerDuty.
3333
runbook_url: https://runbooks.prometheus-operator.dev/runbooks/general/watchdog
3434
summary: An alert that should always be firing to certify that Alertmanager is working properly.
35-
expr: vector(1)
35+
expr: present_over_time(prometheus_tsdb_head_max_time[1m]) != 0
3636
labels:
3737
severity: none
3838
- alert: InfoInhibitor

0 commit comments

Comments
 (0)