forked from mtusi2026/mtusi2026lab6
lab6: observability — OTel Collector, Prometheus, Loki, Tempo, Grafana
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
groups:
|
||||
- name: worker
|
||||
interval: 30s
|
||||
rules:
|
||||
- alert: QueueLagHigh
|
||||
expr: |
|
||||
jobs_oldest_pending_age_seconds > 60
|
||||
for: 2m
|
||||
labels:
|
||||
severity: critical
|
||||
component: worker
|
||||
annotations:
|
||||
summary: "Oldest pending job age > 60s for 2m"
|
||||
description: "Oldest pending job: {{ $value | humanizeDuration }}"
|
||||
runbook: "infra/otel/runbooks/queue-lag.md"
|
||||
|
||||
- alert: WorkerSaturated
|
||||
expr: |
|
||||
worker_in_flight >= worker_capacity
|
||||
for: 5m
|
||||
labels:
|
||||
severity: warning
|
||||
component: worker
|
||||
annotations:
|
||||
summary: "Worker at capacity for 5m"
|
||||
description: "in_flight={{ $value }}"
|
||||
Reference in New Issue
Block a user