Overview
Instrument the hosted API with Prometheus-compatible metrics (request latency histograms, error-rate counters, in-flight analysis-job gauges) and build Grafana dashboards to visualize them.
Background / Context
Builds directly on the structured logging/tracing work in #1149, giving the team real-time visibility into API health once mainnet traffic starts flowing, which is also a prerequisite for the canary-rollout triggers in #1141.
Goal
A Grafana dashboard showing p50/p95/p99 API latency, error rate by endpoint, and analysis-job throughput, backed by a Prometheus metrics endpoint exposed by the API.
Scope of Work
- Expose a
/metrics endpoint from the API in Prometheus text format.
- Instrument key routes with latency histograms and error counters.
- Build and version-control a Grafana dashboard JSON definition.
Out of Scope
- Standing up the Prometheus/Grafana infrastructure itself if using a managed provider — configuration only.
Acceptance Criteria
Files & Pointers
References
Dependencies / Related
Depends on #1149. Feeds #1141, #1152.
Difficulty & Estimated Effort
Medium — ~3 days.
Overview
Instrument the hosted API with Prometheus-compatible metrics (request latency histograms, error-rate counters, in-flight analysis-job gauges) and build Grafana dashboards to visualize them.
Background / Context
Builds directly on the structured logging/tracing work in #1149, giving the team real-time visibility into API health once mainnet traffic starts flowing, which is also a prerequisite for the canary-rollout triggers in #1141.
Goal
A Grafana dashboard showing p50/p95/p99 API latency, error rate by endpoint, and analysis-job throughput, backed by a Prometheus metrics endpoint exposed by the API.
Scope of Work
/metricsendpoint from the API in Prometheus text format.Out of Scope
Acceptance Criteria
/metricsendpoint live and scraped.Files & Pointers
frontend/app/apiReferences
Dependencies / Related
Depends on #1149. Feeds #1141, #1152.
Difficulty & Estimated Effort
Medium — ~3 days.