forked from MasterOz786/Shurull-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalert.rules.yml
29 lines (27 loc) · 841 Bytes
/
alert.rules.yml
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
groups:
- name: shurull_alerts
rules:
- alert: HighCPUUsage
expr: rate(process_cpu_seconds_total[5m]) * 100 > 80
for: 5m
labels:
severity: warning
annotations:
summary: High CPU usage detected
description: CPU usage is above 80% for 5 minutes
- alert: HighMemoryUsage
expr: process_resident_memory_bytes / process_virtual_memory_bytes * 100 > 80
for: 5m
labels:
severity: warning
annotations:
summary: High memory usage detected
description: Memory usage is above 80% for 5 minutes
- alert: HighErrorRate
expr: rate(http_requests_total{status=~"5.."}[5m]) / rate(http_requests_total[5m]) * 100 > 5
for: 5m
labels:
severity: critical
annotations:
summary: High error rate detected
description: Error rate is above 5% for 5 minutes