Grafana Local Assets
This repository includes local-first observability assets for RFC-006:
- Dashboard JSON:
infra/observability/grafana-dashboard-photobooth-api.json - Alert rules YAML:
infra/observability/grafana-alert-rules-photobooth-api.yaml
Dashboard panels included
- API p95 latency (
request.end->durationMs) - API 5xx error rate
- Payment success rate (
license.activated / payment.created)
Alert rules included
- API 5xx spike (
>2% for 5m) - Payment webhook failures (
>=3 events in 5m) - Payment create p95 latency (
>2000ms for 10m) - Download route error rate (
>5% for 10m)
Import steps (Grafana)
- Open Grafana and create/select a folder (example:
Photobooth API). - Import dashboard JSON from
infra/observability/grafana-dashboard-photobooth-api.json. - Map the
datasourcevariable to your Loki datasource. - Provision alert rules using the YAML file or copy each rule query manually in Grafana Alerting UI.
Local validation checklist
- Trigger
/api/v1/payments/createand/api/v1/download/:photoIdtraffic. - Confirm
request.end,request.error, anddomain.eventlogs appear in Loki. - Verify each panel displays data.
- Test alert thresholds in a non-production environment.