Interview Prep/Monitoring & Observability/Grafana dashboards and data sources

Grafana sidecar does not load dashboards from ConfigMaps

IntermediateTroubleshootingGrafana dashboards and data sources
Answer

Likely causes → The ConfigMap lacks the label the sidecar watches (grafana_dashboard: "1" by default), it's in a namespace the sidecar doesn't search, or JSON is invalid.

Diagnose →

kubectl logs -n monitoring deploy/grafana -c grafana-sc-dashboard | tail
kubectl get cm -A -l grafana_dashboard=1

Fix → Add the label, set sidecar.dashboards.searchNamespace: ALL in the Helm values, validate JSON with jq.

Prevent → CI-validate dashboard JSON and labels.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Grafana dashboards and data sources