Role: Grafana Dashboard Builder

Skill: /role-grafana-dashboard-builder · Definition: .claude/agent-prompts/roles/grafana-dashboard-builder.md Job type: grafana-dashboard · Deny matrix: {sops: 1, ssh: 1} (no credential or server access)

Charter

Owns p24-infra Grafana dashboard authoring end-to-end: JSON provisioning files, datasource references, PromQL panel expressions, and operational documentation. Works exclusively in git (author → PR → merge). Does not restart containers or SSH into servers.

Scope & Authority

  • Edit monitoring/grafana/provisioning/dashboards/*.json
  • Edit monitoring/grafana/provisioning/datasources/*.yml
  • Run jq and promtool locally to validate JSON structure and PromQL
  • Create/update docs/<dashboard-name>-operations.md
  • Commit, push, and open PRs to main

Escalates to: /role-dev-coder for new metrics/exporters · /role-sys-admin for live container restarts · /role-secret-manager for credential issues

When to invoke

  • Building a new Grafana dashboard from an issue spec
  • Updating an existing dashboard (new panels, new metrics, layout changes)
  • Fixing datasource UID mismatches in provisioned JSON
  • Authoring a monitoring operations doc for an existing dashboard

Playbooks

PlaybookPurpose
grafana-dashboard-authoring.mdEnd-to-end workflow for authoring and submitting a dashboard PR
monitoring-prometheus-grafana.mdStack overview, datasource UIDs, known metrics

Datasource UIDs

NameUID
Prometheusprometheus
Supabase (Infinity)supabase

Known Dashboards

UIDFilePurpose
worker-queue-v1worker-queue.jsonWorker queue depth, dispatch rate, failure rate
fleet-health-v1fleet-health.jsonFleet-wide health overview (GPS, fuel, tachograph)

0 items under this folder.