Skip to content

Commit

Permalink
suppress duplicate alerts / instance
Browse files Browse the repository at this point in the history
  • Loading branch information
asiyani committed Oct 23, 2024
1 parent 7b4dc77 commit 622f970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/all.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ groups:
To get more info about the issue check the namespace events with the following command:
`kubectl --context={{ $labels.kubernetes_cluster }} -n {{ $labels.resource_namespace }} get events`
- alert: KyvernoBackgroundScanCanary
expr: increase(kyverno_policy_results_total{rule_name="detect-canary-configmap",rule_execution_cause="background_scan",rule_result="fail"}[1h]) == 0
expr: sum by (kubernetes_cluster,resource_namespace,policy_name,rule_name) (increase(kyverno_policy_results_total{rule_name="detect-canary-configmap",rule_execution_cause="background_scan",rule_result="fail"}[1h])) == 0
for: 10m
labels:
team: infra
Expand Down

0 comments on commit 622f970

Please sign in to comment.