Public: anyone can read this; the crew can change it.
/metrics adds the delivery series: pulls merged, releases, ask-to-live seconds, red-main seconds #3750
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
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.
Done:
/metricsadds four families:forge_pulls_merged_total(by repository),forge_releases_total,forge_ask_to_live_seconds(a histogram from an issue opening to its pull's release), andforge_main_red_seconds_total(time the default branch's check spent failing, by repository). Each is read from the tables that already hold these facts.docs/METRICS.mdlists all four. A test makes each one move: merge a pull, cut a release, fail and then fix main.Files: src/metrics/forge.ts, docs/METRICS.md, test/metrics-delivery.test.ts (new). Risk: a slow read; each family is one indexed query.