Add M8.5 observability: pinned Prometheus, tested alerts, capacity metrics

An AEvolution-only Prometheus 3.13.3 and Alertmanager 0.34.1, pinned by
digest and delivered by Argo (ADR-0072), scrape each region's operations
Service through static targets (no API access, no RBAC); the region
namespaces admit port 9100 from Prometheus only. Sixteen alert rules
cover authority, lease, commits, backlog and object capacity and are
proven by promtool injection tests in CI with tools copied from the same
pinned images. Two new gauges expose object volume free space and the
reserve. Alerts route to a null receiver until a destination is chosen;
no broker is adopted and the database outbox stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-30 06:16:36 -04:00
co-authored by Claude Opus 5.5
parent 2c79d4748c
commit b4493b3d0f
33 changed files with 1068 additions and 8 deletions
@@ -0,0 +1,33 @@
# M8.5 Prometheus configuration (ADR-0072). Static targets: the region operations
# Service of each disposable environment. The scrape target carries the region's
# identity as labels (ADR-0066): the exposition itself has no world/region labels.
global:
scrape_interval: 15s
scrape_timeout: 5s
evaluation_interval: 15s
rule_files:
- /etc/prometheus/evo-region.rules.yml
alerting:
alertmanagers:
- static_configs:
- targets: [alertmanager:9093]
scrape_configs:
- job_name: evo-region
metrics_path: /metrics
# The exposition is at most 8 KiB (ADR-0066); anything larger is refused.
body_size_limit: 64KB
sample_limit: 64
static_configs:
- targets: [evo-region-ops.evolution-dev.svc:9100]
labels: {environment: dev, world: "100", region: "1"}
- targets: [evo-region-ops.evolution-stage.svc:9100]
labels: {environment: stage, world: "200", region: "1"}
- job_name: prometheus
static_configs:
- targets: [localhost:9090]
- job_name: alertmanager
static_configs:
- targets: [alertmanager:9093]