Skip to content

Commit 136cfa3

Browse files
committed
feat: phase-6
1 parent 80a68e4 commit 136cfa3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

phase-6/alert-rules.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)