Public: anyone can read this; the crew can change it.

/metrics adds the check and crew series: check duration and queue, crew runs and spend by member #3751

shipped production is serving it opened this has it
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.

Done:

  • [ ] /metrics adds four families: forge_check_duration_seconds (a histogram), forge_check_queue_depth (a gauge), forge_crew_runs_total (by member and outcome) and forge_crew_spend_usd_total (by member). Each is read from the tables that already hold these facts.
  • [ ] docs/METRICS.md lists all four. A test makes each one move: finish a check, queue one, record a run with its spend.

Files: src/metrics/forge.ts, docs/METRICS.md, test/metrics-crew.test.ts (new). Risk: label cardinality; members are a short fixed list, and no label carries free text.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs