ЛР7 на 4: HTTPS, mTLS, OpenBao AppRole и ротация leaf.
Skeleton contracts / contracts (pull_request) Blocked by required conditions

Smoke/security/grade4/persistence/failover пройдены; REPORT и DEFENSE.
This commit is contained in:
2026-12-02 23:08:27 +03:00
parent 20afc2c790
commit 2f2047909f
182 changed files with 15169 additions and 90 deletions
+29
View File
@@ -0,0 +1,29 @@
groups:
- name: messenger_slo
interval: 2s
rules:
- alert: APIHighErrorRate
expr: (sum(rate(haproxy_backend_http_responses_total{proxy="replicas",code="5xx"}[30s])) or vector(0)) / clamp_min(sum(rate(haproxy_backend_http_responses_total{proxy="replicas"}[30s])), 0.001) > 0.1
for: 6s
labels:
severity: warning
annotations:
summary: API 5xx above 10% for 30s
runbook: DEFENSE.md#incident-db
- alert: QueueLag
expr: max(messenger_queue_oldest_age_seconds) > 5 and max(messenger_queue_depth) > 0
for: 6s
labels:
severity: warning
annotations:
summary: Oldest pipeline job exceeds 5s
runbook: DEFENSE.md#incident-worker
- alert: ReadyBudgetFastBurn
expr: (sum(rate(messenger_attachment_sli_bad_total[10s])) / clamp_min(sum(rate(messenger_attachment_sli_total[10s])), 0.001) > 6 * 0.05) and (sum(rate(messenger_attachment_sli_bad_total[60s])) / clamp_min(sum(rate(messenger_attachment_sli_total[60s])), 0.001) > 6 * 0.05)
for: 10s
labels:
severity: critical
slo: ready_95
annotations:
summary: Ready deadline budget burn >6x in 10s and 60s
runbook: DEFENSE.md#incident-worker
+15
View File
@@ -0,0 +1,15 @@
global:
scrape_interval: 2s
evaluation_interval: 2s
rule_files:
- /etc/prometheus/alerts.yaml
scrape_configs:
- job_name: messenger
static_configs:
- targets: [collector:8889]
- job_name: collector_self
static_configs:
- targets: [collector:8888]
- job_name: ingress
static_configs:
- targets: [lb:8404]