Skip to content

PRD: add Weekly Capacity Management Grafana dashboard#2604

Open
groundnuty wants to merge 1 commit into
mainfrom
feat/prd-weekly-capacity-dashboard
Open

PRD: add Weekly Capacity Management Grafana dashboard#2604
groundnuty wants to merge 1 commit into
mainfrom
feat/prd-weekly-capacity-dashboard

Conversation

@groundnuty
Copy link
Copy Markdown
Contributor

@groundnuty groundnuty commented May 19, 2026

Summary

Adds a new Grafana dashboard (created by @souviksengupta-ionos) for tracking weekly capacity in dome-prd. It will be picked up automatically by the existing kube-prometheus-stack ArgoCD app, which already watches ionos_prd/grafana-dashboards/ as one of its sources.

How it works

The dashboard is wrapped in a ConfigMap with label grafana_dashboard: "1". Grafana's sidecar in kube-prometheus-stack watches for these labeled ConfigMaps cluster-wide and imports the dashboard JSON without restarting Grafana.

This follows the exact same pattern used for the existing ticketing-analytics.yaml dashboard in the same directory.

What was changed in the JSON before embedding

To avoid conflicts on import, the following Grafana-export-only fields were removed:

  • id (numeric ID, was 41) — Grafana assigns one on import
  • uid (was afkjwa2n1kqgwc) — Grafana generates fresh
  • version (was 9) — Grafana tracks its own version

Datasource references use UID prometheus, which is the same UID used by other prod dashboards (verified against argocd-dashboard.yaml).

Verification

kubectl --context dome-prod apply --dry-run=server \
  -f ionos_prd/grafana-dashboards/weekly-capacity-management.yaml \
  -n kube-prometheus-stack
# configmap/weekly-capacity-management created (server dry run)

Test plan

  • After merge, ArgoCD syncs kube-prometheus-stack
  • ConfigMap weekly-capacity-management exists in kube-prometheus-stack namespace
  • Dashboard "Weekly Capacity Management -DOME-PRD Environment" appears at https://grafana.dome-marketplace-prd.org
  • All 6 panels render data (no "Datasource not found" errors)

Adds a new auto-loaded Grafana dashboard for PRD capacity tracking.
The kube-prometheus-stack ArgoCD app already includes the directory
ionos_prd/grafana-dashboards/ as a source, so the Grafana sidecar
picks up new ConfigMaps with label grafana_dashboard=1 automatically.

Stripped Grafana-export-only fields (id, uid, version) before
embedding so the sidecar manages them on import.

Verified locally with:
  kubectl --context dome-prod apply --dry-run=server -f <file>
  → configmap/weekly-capacity-management created (server dry run)
@souviksengupta-ionos
Copy link
Copy Markdown
Contributor

Thanks! @groundnuty, can someone please approve the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants