-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROX-15234: Alert when instance has pause-reconcile for more than 2 da…
…ys (#102)
- Loading branch information
1 parent
3a52a34
commit b7c00b5
Showing
2 changed files
with
39 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
30 changes: 30 additions & 0 deletions
30
resources/prometheus/unit_tests/RHACSFleetshardSyncCentralReconcilePaused.yaml
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,30 @@ | ||
rule_files: | ||
- /tmp/prometheus-rules-test.yaml | ||
|
||
evaluation_interval: 1h | ||
|
||
tests: | ||
- interval: 1h | ||
input_series: | ||
- series: acs_fleetshard_pause_reconcile_instances{instance="rhacs-chs64i3dabr0026a6fag"} | ||
values: "0+0x0 1+0x50 0+0x2" | ||
alert_rule_test: | ||
- eval_time: 1h | ||
alertname: RHACSFleetshardSyncCentralReconcilePaused | ||
exp_alerts: [] | ||
- eval_time: 30h | ||
alertname: RHACSFleetshardSyncCentralReconcilePaused | ||
exp_alerts: [] | ||
- eval_time: 49h | ||
alertname: RHACSFleetshardSyncCentralReconcilePaused | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: RHACSFleetshardSyncCentralReconcilePaused | ||
instance: rhacs-chs64i3dabr0026a6fag | ||
severity: warning | ||
exp_annotations: | ||
summary: "ACS instance rhacs-chs64i3dabr0026a6fag has paused reconciliation for more than 2 days." | ||
description: "ACS instance rhacs-chs64i3dabr0026a6fag has the 'pause-reconcile' annotation and therefore is not being managed by the ACS operator. Please check that this is intended." | ||
- eval_time: 52h | ||
alertname: RHACSFleetshardSyncCentralReconcilePaused | ||
exp_alerts: [] |