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

Closed opened this

Landed in pull #3883 · 2 runs · run

opened this

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 GET route 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: /metrics names every route pattern, so it is for admins only. Keep the read under 50 ms.

3 earlier comments
commented

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.

commented

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:

  1. 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)
  2. 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.

commented

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.

commented

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs