[+] lab7
Grade 3 secure application acceptance / secure (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Xabenskie
2026-11-30 09:09:57 +03:00
parent 20afc2c790
commit 4eca49fe3d
149 changed files with 68317 additions and 58 deletions
+17
View File
@@ -0,0 +1,17 @@
groups:
- name: messenger
rules:
- alert: HighApiErrorRate
expr: sum(rate(http_requests_total{status_class="5xx"}[1m])) / clamp_min(sum(rate(http_requests_total[1m])),0.001) > 0.05
for: 15s
labels: {severity: warning}
annotations:
summary: Business API 5xx exceeds 5% in 1 minute
runbook: Check postgres.query error spans, DB pool and request logs. Restore DB and confirm resolved.
- alert: QueueLagGrowing
expr: max(queue_oldest_age_seconds) > 15
for: 15s
labels: {severity: warning}
annotations:
summary: Oldest unfinished attachment is older than 15 seconds
runbook: Check worker capacity/busy, job outcomes and consumer spans. Restore worker and confirm queue drains.