ЛР6: наблюдаемость, сквозные traces и исследование sampling
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
groups:
|
||||
- name: messenger
|
||||
rules:
|
||||
- alert: APIHighErrorRate
|
||||
expr: sum(rate(http_server_requests_total{service_name="messenger-api",status_class="5xx"}[30s])) / clamp_min(sum(rate(http_server_requests_total{service_name="messenger-api"}[30s])), 0.001) > 0.05
|
||||
for: 6s
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: API 5xx share exceeds 5 percent in the last 30 seconds
|
||||
runbook: infra/RUNBOOK.md#api-errors
|
||||
- alert: QueueLag
|
||||
expr: max(queue_oldest_age_seconds{service_name="messenger-dispatcher"}) > 10 and max(queue_depth{service_name="messenger-dispatcher"}) > 0
|
||||
for: 6s
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: Accepted unfinished image work older than 10 seconds
|
||||
runbook: infra/RUNBOOK.md#queue-lag
|
||||
- alert: QueueObservationUnavailable
|
||||
expr: min(queue_observation_ok{service_name="messenger-dispatcher"}) == 0
|
||||
for: 6s
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: Dispatcher cannot observe PostgreSQL backlog
|
||||
runbook: infra/RUNBOOK.md#api-errors
|
||||
Reference in New Issue
Block a user