/integrations:grafana-dashboard-datasource-uid-mismatchfrom integrations
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.
Trending skills
7-day visitors to each skill page
Ships in integrations. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A Grafana dashboard panel shows "No data" while:
This is a silent failure — Grafana doesn't surface "this UID doesn't resolve" anywhere in the panel UI. It just renders an empty plot.
Any of these:
A dashboard imported from another Grafana instance shows "No data" on every panel after import.
A provisioned dashboard (dropped under provisioning/dashboards/
along with a JSON file) doesn't render data despite Prometheus
scraping fine.
Bringing up a stack on a fresh grafana_data volume — the
dashboard worked on the previous volume but not the new one.
Grafana logs show, after adding uid: to a datasource provisioning
YAML and restarting:
level=error msg="Failed to provision data sources" error="Datasource provisioning error: data source not found"
The Grafana container crash-loops with this error. (The error message is misleading — the datasource IS found by name; what's failing is changing its UID in place.)
Run these three commands; the third one tells you the answer.
# 1. Confirm the data exists upstream
curl -s 'http://localhost:9090/api/v1/query?query=<your_metric>' | jq '.data.result | length'
# Expect: > 0
# 2. Get the UID Grafana actually assigned
curl -s -u admin:admin http://localhost:3000/api/datasources | jq '.[] | {name, uid}'
# Example output: { "name": "Prometheus", "uid": "PBFA97CFB590B2093" }
# 3. Get the UIDs the dashboard JSON references
grep -oE '"uid":[[:space:]]*"[^"]+"' /path/to/dashboard.json | sort -u
# Example: "uid": "prometheus"
If step 2's UID ≠ step 3's UID for the datasource, that's your bug.
When a dashboard JSON is exported from one Grafana instance, every
panel target embeds a datasource: {uid: <X>} reference. The export
captures the UID as it existed in the source instance.
If you import that dashboard into a different Grafana instance — or
re-provision against a fresh grafana_data volume — Grafana
auto-assigns a new opaque UID to the datasource (e.g.
PBFA97CFB590B2093). The dashboard's hardcoded "uid": "prometheus"
no longer resolves. Every panel fails silently.
This is especially common with provisioned setups because the
default provisioning/datasources/<name>.yml does NOT include a uid
field, so Grafana picks one for you on first start.
Pin the UID in the datasource provisioning YAML so it matches what the
dashboard JSON references. And include a deleteDatasources:
directive — Grafana refuses to update an existing-by-name datasource's
UID in place, so the existing record must be dropped first.
# observability/grafana/provisioning/datasources/prometheus.yml
apiVersion: 1
# Drop any pre-existing "Prometheus" datasource before re-provisioning.
# Without this, Grafana refuses to update an existing-by-name
# datasource's UID, and the container crash-loops with:
# "Datasource provisioning error: data source not found"
deleteDatasources:
- name: Prometheus
orgId: 1
datasources:
- name: Prometheus
uid: prometheus # MUST match what dashboard.json hardcodes
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
editable: true
Then restart Grafana:
docker compose -f docker-compose.observability.yml restart grafana
The deleteDatasources directive only fires once (on first start
after the YAML is updated); on subsequent restarts it's a no-op
because the named record already has the correct UID.
Three checks, in order:
# 1. Datasource UID is now what the dashboard expects
curl -s -u admin:admin http://localhost:3000/api/datasources | jq '.[] | {name, uid}'
# Expect: { "name": "Prometheus", "uid": "prometheus" }
# 2. Grafana proxy resolves the query (simulates a dashboard panel)
curl -s -u admin:admin -X POST 'http://localhost:3000/api/ds/query' \
-H 'Content-Type: application/json' \
-d '{"queries":[{"refId":"A","datasource":{"uid":"prometheus","type":"prometheus"},"expr":"<your_metric>","range":true,"intervalMs":15000,"maxDataPoints":100}],"from":"now-1h","to":"now"}' \
| jq '.results.A.frames | length'
# Expect: > 0 (each frame is one time series)
# 3. Open the dashboard in a browser; panels should populate within ~5s
open http://localhost:3000/d/<dashboard-uid>
If step 2 returns 0 frames, the UID is right but the query is wrong
— check the metric name and the time range. If step 1's UID still
doesn't match, the deleteDatasources directive didn't fire (check
docker compose logs grafana for provisioning errors).
Symptom signature in pushgateway → Prometheus → Grafana pipeline:
== Pushgateway ==
compete_backtests_total{run_id="...",team="team_alice"} 1
== Prometheus ==
result count: 3
team_alice val=1 age_s=0
team_bob val=1 age_s=0
team_carol val=1 age_s=0
== Grafana datasource ==
{ "name": "Prometheus", "uid": "PBFA97CFB590B2093" }
== Dashboard JSON ==
"uid": "prometheus"
== Grafana panels ==
"No data" (every panel)
The fix: edit
observability/grafana/provisioning/datasources/prometheus.yml to add
uid: prometheus and the deleteDatasources: block (as shown
above), then docker compose restart grafana. After ~10 seconds the
datasource UID flips to prometheus and panels populate.
deleteDatasources exists precisely to handle this case.grafana_data Docker volume
(docker compose -f <file> down -v). Cleaner but loses any
hand-created dashboards/users. Use only on dev/test stacks."datasource": {"uid": "..."} shows up in every panel target. A
single dashboard with N panels means N copies of the same UID
string — one bad UID, all panels break.team
variable populated from a Prometheus label_values() query) — they
break the same way. The fix is the same; the UID is global to the
dashboard.deleteDatasources directive (immutable-UID workaround):
https://grafana.com/docs/grafana/latest/administration/provisioning/#example-data-source-config-filepanels[].targets[].datasource.uid is the field that breaks):
https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/cajias/nautilus-competition Prometheus
pushgateway → Grafana observability stack (May 2026). Dashboard at
/d/competition showed "No data" while the pushgateway had three
teams emitting compete_* metrics; root cause was the
auto-generated UID mismatch documented above.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cajias/claude-skills --plugin integrations7 skills in this plugin
/mcp-file-upload-base64-transport-limitWhy you cannot upload a real file (>~15 KB) through content-MCP tools that
take base64 inline — Google Drive `create_file`, similar Notion/media MCPs —
and what to do instead. Use when: (1) `create_file` (or any MCP upload) fails
with "Request contains an invalid argument" on a .pptx/.pdf/.png/.zip; (2) an
upload subagent loops for many minutes / hours retrying the same file;
(3) you Read a base64 file to feed a tool and it truncates (e.g. "returned
only the first 22,377 of 124,988 characters", 25K-token cap, one unbreakable
line); (4) you're about to push a binary to Drive/Notion via an MCP and the
file is more than ~11 KB; (5) you need to embed a deck/file in Notion (Notion
MCP is URL/text-only — no binary upload). Also records that Office files
(.pptx/.docx/.xlsx) DO auto-convert to native Google editor types on
create_file by default.
/notion-publish-generated-markdownGotchas when publishing AI/subagent-drafted Notion-flavored markdown via the
Notion MCP (notion-create-pages / notion-update-page) — especially design-phase
artifacts with callouts, <table> blocks, and mermaid diagrams. Use when:
(1) a published Notion page shows literal "<callout" / "<table" / "&"
instead of rendered blocks; (2) a subagent returns drafted markdown with HTML
entities escaped (< > &) that you are about to pass to
notion-create-pages; (3) a mermaid diagram silently fails to render and a
subgraph/node id is a reserved word such as `graph`, `end`, or `subgraph`;
(4) you fanned out drafters to publish pages and need to confirm the pages
actually landed.
/openpencil-mcp-gotchasOperational gotchas + recovery for driving the OpenPencil design editor through its MCP server (open-pencil / openpencil-mcp; the mcp__open-pencil__* tools — render, export_image, export_svg, set_image_fill, set_layout_child, set_font_range, new_document, save_file). Use when: (1) export_image returns "No visible nodes to export" though get_page_tree shows real nodes; (2) rendered text overflows/overlaps because a font (Inter, Newsreader, IBM Plex, Geist) is not installed and the app rasterizes with a wider fallback; (3) justify="space-between" in render JSX does not right-align children; (4) the app stops responding and every mcp__open-pencil__* call returns {"error":"RPC timeout (30s)"}; (5) set_image_fill hangs the app when given a real-photo-sized base64; (6) setting up open-pencil MCP for Claude Code. Complements the official open-pencil/skills@open-pencil API skill with the edge cases it does not cover.
/playwright-mcp-singleton-lock-workaroundWorkaround for "Browser is already in use for .../mcp-chrome-..., use --isolated
to run multiple instances of the same browser" error from Playwright MCP. Use when:
(1) You need to run browser automation but another teammate/session is already
holding the Playwright MCP Chrome instance, (2) `mcp__plugin_playwright_playwright__browser_navigate`
/ `browser_snapshot` / `browser_close` all fail with the same Chrome SingletonLock
error, (3) You're in a multi-agent team mode where two agents both need browser
automation concurrently. Covers how to drive an isolated headless Chromium using
`uv run --with playwright` without installing any new project dependencies.
/workers-best-practicesReviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge./wranglerCloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.