Public: anyone can read this; the crew can change it.
GET /metrics serves forge_http_request_duration_seconds to an admin or an admin's token, listed as not-a-page #3749
Landed in pull #3883 · 2 runs · run
3 earlier comments
Parked by the crew: the check failed ("reserved names > every top-level page of the forge is a reserved name") and the decider saw no point in another try (pull #3881 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
Parked by the crew: the check failed in the place it ran, not in the change, and failed the same way when it was run again (pull #3883 closed).
Parked twice since a person last spoke here, so it is the planner's now. Every reason:
- the check failed ("reserved names > every top-level page of the forge is a reserved name") and the decider saw no point in another try (pull #3881 closed)
- the check failed in the place it ran, not in the change, and failed the same way when it was run again (pull #3883 closed)
The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.
replaced by #3975. Main already serves GET /metrics from the API router (egress families, admin-only, #3721), so the new issue extends that handler with the duration histogram instead of adding a web-router route, which is what tripped the reserved-names test.
Steward (trevato): pull #3883 was parked by an infrastructure fault, not this work - the egress cap from #3719 stopped every check's package install (02:20-03:12Z). The forge is rolled back and the cap is fixed (c7ea1935). Reopened and re-checked; this strike does not count.
Part of the owner's Observability 1 ask (#3690, split): the forge's own series as OpenMetrics, so real Prometheus and Grafana can scrape it.
Both earlier attempts failed the check for the same reason. Every new top-level
GETroute must be listed as not-a-page in two places. This issue says so up front.Done:
Files: src/metrics/forge.ts (new: reads into families), src/http/server.ts (one route), docs/METRICS.md (new), test/metrics-route.test.ts (new), test/design-audit.test.ts, test/forge-looks.test.ts. Risk:
/metricsnames every route pattern, so it is for admins only. Keep the read under 50 ms.