Skip to content

Build Grafana/Prometheus dashboards for API latency and error rate #1150

Description

@Gbangbolaoluwagbemiga

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

  1. Expose a /metrics endpoint from the API in Prometheus text format.
  2. Instrument key routes with latency histograms and error counters.
  3. 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

  • /metrics endpoint live and scraped.
  • Dashboard JSON committed and importable, showing latency/error-rate panels.

Files & Pointers

  • frontend/app/api

References

Dependencies / Related

Depends on #1149. Feeds #1141, #1152.

Difficulty & Estimated Effort

Medium — ~3 days.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcomponent:frontendfrontend web dashboarddifficulty:mediumModerate changemainnetTouches mainnet launch readiness worknext-waveScoped for the next contributor wavepriority:p2Medium prioritytype:featureNew user-facing or platform capability

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions