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:
@@ -97,6 +97,9 @@ void probes_follow_authority_and_stay_bounded() {
|
||||
CHECK(metric(port, "evo_region_lease_remaining_milliseconds") > 0);
|
||||
CHECK(metric(port, "evo_region_queue_capacity_inputs") == 64 &&
|
||||
metric(port, "evo_region_queue_capacity_bytes") == 65536);
|
||||
// M8.5: the default reserve is 1024 MiB, and the volume reports real free space.
|
||||
CHECK(metric(port, "evo_region_objects_reserve_bytes") == std::uint64_t{1024} * 1024 * 1024 &&
|
||||
metric(port, "evo_region_objects_available_bytes") > 0);
|
||||
auto page = get(port, "/metrics");
|
||||
CHECK(page.body.find("evo_region_phase{phase=\"running\"} 1\n") != std::string::npos);
|
||||
server.send(input_lines(1, 30, false));
|
||||
|
||||
Reference in New Issue
Block a user