/polymath-observability:dashboard-snapshotfrom polymath-observability
Capture a Grafana dashboard snapshot for incident timelines + postmortem evidence — snapshot URL, time range pinned, variables resolved.
Ships in polymath-observability. 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.
Take a permalinked snapshot of a Grafana dashboard at a specific time window so an incident timeline or postmortem can reference exactly what the on-call saw. Output is the snapshot URL + the variables/time captured.
Mode: deterministic — same inputs, same output. Follow the steps and the output shape exactly; compute with the named script or tool, never by estimate; add nothing the shape does not ask for.
MCP binding (read before any tool call): if your host has a
grafanaMCP server, use its tools for this skill's data access. Check your own tool list — it may be registered under another name (a Claude Code connector appears asmcp__claude_ai_<Name>__*). Tool names differ between servers: use the closest match, and say so when the server is read-only. Never install or start a second copy. If there is none, work without MCP tool calls (give the user the queries or steps to run) and ask before suggesting an install.
from + to ISO-8601, or a relative spec like from=now-2h&to=now-30m (snapshot resolves it to absolute timestamps at capture).service=refund-api, env=prod). Required when the dashboard uses them; otherwise the snapshot is ambiguous.dashboards.uid or search?query=... to get the UID. Refuse if multiple match — pick the most specific or surface the candidates.now-X to absolute UTC timestamps at capture time. Embed the absolute range in the snapshot URL.POST /api/snapshots — note the API stores only the data embedded in the payload: a dashboard JSON without panel snapshotData produces an empty snapshot. If your tool can't embed query results, fall back to a permalink with absolute from/to epoch-ms and var-<name>= parameters (plus a rendered PNG if the image renderer is available) and say so:
dashboard — the dashboard JSON with the chosen time + variables pinned.expires — pick a long-but-finite TTL (default 90 days for incident, never permanent; permanent snapshots leak).external — false (host on the same Grafana). true only when sharing with non-authenticated viewers AND the dashboard contains no sensitive labels.docs/incidents/<id>/grafana-snapshots/<dashboard-slug>-<timestamp>.json with { url, deleteKey, dashboardUid, time, variables, expiresAt }.dashboard-snapshot
Dashboard: refund-api-overview (uid abc123)
Time: 2026-05-23T14:00:00Z → 2026-05-23T14:30:00Z (absolute)
Variables:
service = refund-api
env = prod
Snapshot URL: https://grafana.example.com/dashboard/snapshot/8z9y…
Expires: 2026-08-21T14:00:00Z (90d)
Delete key: saved (artifact only — not echoed here)
Saved artifact:
docs/incidents/2026-09-refund-async/grafana-snapshots/refund-api-overview-20260523T1400Z.json
now-X left unresolved.expires is finite (not permanent).deleteKey saved in the artifact, not echoed in chat.external=true only with explicit sensitive-label check.expires=0"). Postmortem snapshots should age out; if you need it forever, screenshot it into the doc.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-observability9 skills in this plugin
/author-monitorAuthor a Datadog monitor — query, threshold, evaluation window, no-data behavior, notification routing; pair with polymath-sre:slo-design for SLO burn-rate monitors./logging-strategyDefine a service's logging strategy — structured JSON, level discipline, redaction, sampling for noisy paths, cost-aware retention./log-searchRun a typed, time-bounded log search against Elasticsearch — refuses unbounded scans, aggregates by trace id / status / route, returns a short evidence packet.Other plugins' skills for the same job