We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80a68e4 commit 136cfa3Copy full SHA for 136cfa3
1 file changed
phase-6/alert-rules.yaml
@@ -0,0 +1,16 @@
1
+apiVersion: monitoring.coreos.com/v1
2
+kind: PrometheusRule
3
+metadata:
4
+ name: my-alerts
5
+ namespace: monitoring
6
+spec:
7
+ groups:
8
+ - name: example
9
+ rules:
10
+ - alert: HighCPU
11
+ expr: sum(rate(container_cpu_usage_seconds_total[5m])) > 0.5
12
+ for: 1m
13
+ labels:
14
+ severity: warning
15
+ annotations:
16
+ summary: 'High CPU detected'
0 commit comments