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
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# M8.5 monitoring configuration checks (ADR-0072): Prometheus configuration syntax,
# alert rule validity, the alert-injection unit tests, and the Alertmanager routing.
# Needs promtool and amtool on PATH, taken from the same pinned images that run in
# the cluster (the ci-deploy Docker stage copies them). No cluster access.
set -euo pipefail
root="$(cd "$(dirname "$0")/../.." && pwd)"
config="$root/deploy/kubernetes/monitoring/config"
promtool --version | head -1
amtool --version 2>&1 | head -1
promtool check config --syntax-only "$config/prometheus.yml"
promtool check rules "$config/evo-region.rules.yml"
(cd "$root/deploy/kubernetes/monitoring/tests" && promtool test rules evo-region.rules.test.yml)
amtool check-config "$config/alertmanager.yml"
echo "monitoring configuration, rules and alert tests passed"