Exclude deleted resources on prometheus alerting query

Signed-off-by: Vincent Boutour <bob@vibioh.fr>
pull/848/head
Vincent Boutour 4 years ago
parent 6c9c9c7578
commit 84ed716908
No known key found for this signature in database
GPG Key ID: 6896D5F3CC06440D

@ -86,7 +86,7 @@ groups:
- name: GitOpsToolkit
rules:
- 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
labels:
severity: page

Loading…
Cancel
Save