forked from Senthil455/Atlas-Workforce-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalert.rules.yml
More file actions
29 lines (27 loc) · 979 Bytes
/
Copy pathalert.rules.yml
File metadata and controls
29 lines (27 loc) · 979 Bytes
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: atlas_service_health
rules:
- alert: ServiceDown
expr: up == 0
for: 30s
labels:
severity: critical
annotations:
summary: "Service {{ $labels.job }} is down"
description: "{{ $labels.job }} has been unreachable for more than 30 seconds."
- alert: HighErrorRate
expr: rate(http_requests_total{status=~"5.."}[5m]) > 0.05
for: 1m
labels:
severity: warning
annotations:
summary: "High error rate on {{ $labels.job }}"
description: "Error rate on {{ $labels.job }} is {{ $value | humanizePercentage }}"
- alert: HighMemoryUsage
expr: process_resident_memory_bytes / process_virtual_memory_bytes > 0.9
for: 5m
labels:
severity: warning
annotations:
summary: "High memory usage on {{ $labels.job }}"
description: "{{ $labels.job }} memory usage is above 90%"