-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_promql.yaml
30 lines (29 loc) · 984 Bytes
/
test_promql.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
# Rule name: HttpRequestStatusCodeDistribution
groups:
- name: examples
rules:
- alert: HighCPUUsage
expr: node_cpu_usage{job="server"}[5m]
for: 5m
labels:
severity: critical
test: |
{{- range $key, $value := .Values.ingress.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
annotations:
summary: High CPU Usage Detected!
description: Average CPU usage across all servers is above 80% for the past 5 minutes.
- alert: HighCPUUsage
expr: node_cpu_usage{job="server"}[5m]
for: 5m
labels:
severity: critical
test: |
{{- range $key, $value := .Values.ingress.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
annotations:
summary: High CPU Usage Detected!
description: Average CPU usage across all servers is above 80% for the past 5 minutes.