1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Exclude deleted resources on prometheus alerting query

Signed-off-by: Vincent Boutour <bob@vibioh.fr>
This commit is contained in:
Vincent Boutour
2021-02-02 13:17:48 +01:00
parent 6c9c9c7578
commit 84ed716908

View File

@@ -86,7 +86,7 @@ groups:
- name: GitOpsToolkit - name: GitOpsToolkit
rules: rules:
- alert: ReconciliationFailure - alert: ReconciliationFailure
expr: gotk_reconcile_condition{type="Ready",status="False"} == 1 expr: max(gotk_reconcile_condition{status="False",type="Ready"}) by (namespace, name, kind) + on(namespace, name, kind) (max(gotk_reconcile_condition{status="Deleted"}) by (namespace, name, kind)) * 2 == 1
for: 10m for: 10m
labels: labels:
severity: page severity: page