File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : monitoring.coreos.com/v1
3+ kind : PrometheusRule
4+ metadata :
5+ labels :
6+ lsst.io/rule : " true"
7+ name : kyverno
8+ spec :
9+ groups :
10+ - name : kyverno.rules
11+ rules :
12+ - alert : KyvernoPolicyExecutionDurationHigh
13+ annotations :
14+ summary : " High mean Kyverno policy execution time of {{ $value }} seconds"
15+ expr : sum(kyverno_policy_execution_duration_seconds_sum{cluster=~".*"}) / sum(kyverno_policy_execution_duration_seconds_count{cluster=~".*"}) > 0.1
16+ for : 15s
17+ labels :
18+ severity : warning
19+
20+ - alert : KyvernoDeploymentIsOnFire
21+ annotations :
22+ summary : " Kyverno deployment {{ $labels.namespace }}/{{ $labels.deployment }} is on fire"
23+ # XXX is this the correct way to determine if a deployment is unhappy?
24+ expr : kube_deployment_status_condition{namespace="kyverno",condition="Available",status="true"} != 1
25+ for : 5m
26+ labels :
27+ severity : warning
You can’t perform that action at this time.
0 commit comments