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>
16 lines
840 B
Bash
16 lines
840 B
Bash
#!/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"
|