Skip to content

Add Grafana dashboard panels for chunk-forwarding / bandwidth-credit metrics #234

Description

@crtahlin

Follow-up to #218 / #223.

The chunk-forwarding and bandwidth-credit metrics added in #223 are scraped by Grafana Alloy and remote-written to Grafana Cloud automatically (no extra wiring) once deployed, so they are immediately queryable. They are not yet shown as panels on the gateway dashboard.

Task

Add panels to monitoring/provisioning/dashboards/gateway-overview.json (and push to Grafana Cloud via the documented API) for:

  • gateway_chunk_uploads_total{status, mode} — upload rate by mode (paid/free/none) and success/error.
  • gateway_chunk_upload_bytes_total — bandwidth throughput.
  • gateway_bandwidth_topups_total{status} + gateway_bandwidth_topup_bytes_total — credit sold.
  • gateway_bandwidth_credit_accounts + gateway_bandwidth_credit_bytes_total — outstanding prepaid liability.

Suggested alerts

  • Sustained gateway_chunk_uploads_total{status="error"} rate.
  • Free-tier abuse: high mode="free" volume.

Notes

Best validated visually against live data, so this should land after the feature is deployed to staging. Keep panels behind the existing dashboard's variables/row conventions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestopsInfrastructure, deployment, monitoringp2Medium priority — planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions