Skip to main content

grafana-dashboard-datasource-uid-mismatch

Fix for Grafana dashboard panels silently showing "No data" even though Prometheus (or any other datasource) has the data and the same query works in Prometheus's own UI. Use when: (1) a freshly-imported or provisioned Grafana dashboard shows "No data" on every panel; (2) the metric exists in Prometheus's `/api/v1/query` response but doesn't render in any Grafana panel; (3) you set up Grafana via Docker provisioning (`provisioning/datasources/*.yml` + `provisioning/dashboards/*.json`) and the dashboard doesn't bind to the datasource; (4) bringing up a stack on a fresh `grafana_data` volume causes the dashboard to break even though it worked before; (5) Grafana logs show `level=error msg="Failed to provision data sources" error="Datasource provisioning error: data source not found"` after adding `uid:` to a datasource YAML and restarting. Root cause is a datasource UID mismatch between the dashboard JSON's hardcoded `"uid": "prometheus"` and the auto-generated UID Grafana gives an unpinned datasource.

跳到安装

来源信息

仓库
cajias/claude-skills
最近来源活动
2026年7月20日 07:29
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。