-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathforgex.rules.yml
More file actions
50 lines (45 loc) · 1.99 KB
/
Copy pathforgex.rules.yml
File metadata and controls
50 lines (45 loc) · 1.99 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
groups:
- name: forgex-production
rules:
- alert: ForgeXApiUnavailable
expr: up{job="forgex-api"} == 0
for: 2m
labels: { severity: critical }
annotations:
summary: ForgeX authority API is unavailable
runbook: deploy/RUNBOOK.md#forgexapiunavailable
- alert: ForgeXHttp5xxBudgetBurn
expr: sum(rate(forgex_http_requests_total{status=~"5.."}[5m])) / clamp_min(sum(rate(forgex_http_requests_total[5m])), 0.001) > 0.05
for: 10m
labels: { severity: critical }
annotations:
summary: HTTP 5xx ratio exceeds 5 percent
runbook: deploy/RUNBOOK.md#forgexhttp5xxbudgetburn
- alert: ForgeXHttpLatencyHigh
expr: histogram_quantile(0.95, sum by (le) (rate(forgex_http_request_duration_ms_bucket[10m]))) > 2000
for: 15m
labels: { severity: warning }
annotations:
summary: HTTP p95 latency exceeds two seconds
runbook: deploy/RUNBOOK.md#forgexhttplatencyhigh
- alert: ForgeXGCodeQueueSaturated
expr: forgex_gcode_job_queue_depth / clamp_min(forgex_gcode_job_queue_capacity, 1) > 0.8
for: 10m
labels: { severity: warning }
annotations:
summary: G-code queue remains above 80 percent
runbook: deploy/RUNBOOK.md#forgexgcodequeuesaturated
- alert: ForgeXGCodeDeadLetters
expr: increase(forgex_gcode_job_dead_letters_total[10m]) > 0
for: 0m
labels: { severity: critical }
annotations:
summary: A G-code job entered the dead-letter terminal state
runbook: deploy/RUNBOOK.md#forgexgcodedeadletters
- alert: ForgeXGCodeFailureRatioHigh
expr: sum(forgex_gcode_jobs{status=~"failed|dead-letter"}) / clamp_min(sum(forgex_gcode_jobs), 1) > 0.01
for: 15m
labels: { severity: warning }
annotations:
summary: Durable failed job ratio exceeds one percent
runbook: deploy/RUNBOOK.md#forgexgcodefailureratiohigh