grafana
Operate, configure, provision, secure, and troubleshoot Grafana OSS, Enterprise, and Cloud, including dashboards, folders, data sources, annotations, alert rules, contact points, notification policies, silences, mute timings, service accounts, RBAC, plugins, APIs, and as-code wor
Install
npx skills add https://github.com/magnus919/agent-skills/tree/main/grafana
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install magnus919-agent-skills@llmmart
git clone https://github.com/magnus919/agent-skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole magnus919/agent-skills collection as a plugin from our marketplace. Git is the plain clone.
README
Grafana Skill
Design and operate trustworthy Grafana dashboards, alerting, provisioning, access, and troubleshooting across OSS, Enterprise, and Cloud.
Why Install This Skill
Grafana can look healthy while dashboards fail to reconcile, queries tell the wrong story, or alerts never reach the intended responder. Versions, editions, organizations, API generations, and provisioning methods also change which operation is safe. A plausible dashboard or copied API example is not enough.
This skill gives your agent a discovery-first workflow for Grafana itself. It identifies version and ownership, validates dashboard and alert semantics, follows notifications from rule to resolution, prevents competing as-code writers, protects credentials and access boundaries, and verifies each affected plane instead of treating /api/health as proof that everything works.
What You Get
| Resource | Purpose |
|---|---|
SKILL.md |
Core operating contract, task routing, approval boundaries, and completion criteria |
references/api-and-version-discovery.md |
Version, edition, organization, authentication, permissions, and /api versus /apis selection |
references/dashboard-engineering.md |
Decision-oriented dashboards, query semantics, variables, panels, links, JSON, accessibility, and review |
references/alerting-and-routing.md |
Rules, instances, labels, policies, grouping, silences, contact points, firing, and resolved delivery |
references/provisioning-and-gitops.md |
File provisioning, Terraform, Git Sync, APIs/SDKs, Operator ownership, drift, migration, and rollback |
references/troubleshooting.md |
Structured diagnosis for panels, data sources, provisioning, alerts, proxies, plugins, and migrations |
references/security-and-change-control.md |
Tokens, secure fields, RBAC, sharing, plugins, destructive actions, backups, and production gates |
references/source-index.md |
Dated official sources, coverage, live Grafana evidence, exclusions, and refresh rules |
evals/evals.json |
Portable output-quality cases covering the required capability areas, version/API selection, and unsafe boundaries |
EVIDENCE-LEDGER.md |
Implementation evidence, verification boundaries, and known gaps |
Quick Start
Start with read-only version and health discovery:
grafana server -v
curl --fail --silent --show-error https://grafana.example.com/api/health
Then identify the edition, deployment owner, organization, resource provenance, and authorized API scope before planning changes. Never place tokens directly in commands retained by shell history or reports.
Triggers
Use this skill for Grafana dashboards, folders, variables, panels, data sources, annotations, library panels, dashboard JSON, service accounts, RBAC, alert rules, contact points, notification policies, silences, mute timings, provisioning, Terraform/Git Sync ownership, Grafana APIs, plugins, security, upgrades, or Grafana-specific troubleshooting.
Do not use it for general observability strategy, SLO or paging-policy design, operating telemetry backends, generic container/orchestrator/proxy work, plugin development, or an authorized security assessment. Load the corresponding specialist skill instead.
Requirements
Reference-only planning needs access to current Grafana documentation. Live work requires authorized access to the target Grafana instance and its owning deployment control plane. API discovery requires an HTTP client and a least-privilege Grafana service-account token; data-source and notification verification require separately authorized test paths.
Skill manifest
Grafana Operations
Treat Grafana as a set of versioned, separately authorized resources with explicit owners. Discover the target, resource provenance, and effective routing before proposing a mutation. A healthy server or attractive dashboard is not proof that provisioning, queries, alert evaluation, or notification delivery works.
Operating contract
- Identify Grafana version, edition, deployment mode, organization, folder or namespace, authentication model, and current permission scope before selecting an API or workflow.
- Inventory existing file provisioning, Terraform/provider state, Git Sync, Grafana Operator resources, and API/UI-managed objects. Assign one authoritative owner per resource UID before changing it.
- Confirm the target, scope, and rollback path before acting. Read-only discovery may proceed without confirmation.
- Treat dashboard, folder, data-source, alerting, user/RBAC, plugin, and server-configuration changes as separate authorization scopes.
- Never print, commit, or preserve secret values from service-account tokens, passwords,
secureJsonData, decrypted receiver settings, OAuth secrets, signing keys, SMTP credentials, or webhooks. Preserve supported secure configuration fields through their authorized secret mechanism and record redacted metadata only. - Validate dashboard and alert queries against the real data source when access exists. Otherwise state the offline limitation and do not claim semantic correctness.
- Verify the requested boundary. Server health does not prove dashboard provisioning; rule firing does not prove routing; notification delivery does not prove resolution behavior.
When not to use
Use site-reliability-engineering to define SLIs, SLOs, error budgets, page-worthiness, severity policy, escalation, and incident practice. Use data-source-specific guidance for PromQL, LogQL, TraceQL, Flux, SQL, storage, and backend operation. Use docker-compose, kubernetes, traefik, or platform-engineering for their infrastructure control planes. Use secure-software-engineering for preventive security design and security-audit-methodology for an authorized assessment. This skill owns Grafana product behavior and Grafana-side integration.
Read-only discovery
Collect only what the current access permits:
grafana server -v
curl --fail --silent --show-error "$GRAFANA_URL/api/health"
For containers, packages, Helm, or Cloud, use the owning platform's read-only inventory to establish the image/tag, configuration path, deployment mode, and public boundary. Do not dump process environments or resolved configuration containing secrets. With an authorized service-account token, prefer bounded GET requests for the exact resource class; send the token through a protected environment or credential store, not command history or reports.
Record:
- version and edition: OSS, Enterprise, or Cloud;
- deployment owner and persistence: package, container, Compose, Kubernetes, Helm, Operator, or managed stack;
- organization, folder, namespace, and target environment;
- authentication method and effective permissions;
- data-source UIDs and types without secure fields;
- dashboard/folder UIDs, alerting resources, and their provenance;
- provisioning providers, watched paths, polling interval, deletion/edit settings, and duplicate ownership;
- rollback source and the boundary that can be tested safely.
Read API and version discovery before choosing endpoints. Grafana 12 introduced the new /apis model, while legacy /api routes begin deprecation in Grafana 13 and do not yet have complete one-to-one replacements.
Route the task
| Need | Read first |
|---|---|
| Discover version, edition, auth, organization, resource APIs, and permission scope | API and version discovery |
| Design or review dashboards, panels, variables, units, transformations, links, annotations, library panels, JSON, or accessibility | Dashboard engineering |
| Build or diagnose rule evaluation, labels, contact points, policies, grouping, silences, mute timings, templates, and delivery | Alerting and routing |
| Choose or reconcile file provisioning, Terraform, Git Sync, API, Foundation SDK, or Operator ownership | Provisioning and GitOps |
| Diagnose blank panels, query/auth failures, provisioning drift, failed evaluations, missing notifications, or proxy/auth problems | Troubleshooting |
| Handle credentials, users, service accounts, RBAC, plugins, deletion, sharing, or production-impacting change | Security and change control |
| Check evidence, version currency, live findings, or refresh rules | Source index |
Safe workflow
1. Define the operational outcome
Name the audience, decision, resource UIDs, authoritative owner, target environment, expected interruption, verification method, and rollback. For dashboards, declare the observability method or question. For alerts, declare owner, severity rationale, runbook/dashboard link, expected route, and noise risk.
2. Reconcile ownership before content
Compare the running object with every potential writer. Do not edit a provisioned resource through another surface merely because that surface permits it. Detect overlapping provider paths, duplicate UIDs or titles, Terraform/API drift, UI edits that will be overwritten, and deletion or pruning behavior before changing files or objects.
3. Validate semantics before presentation
Run representative queries over a known time range. Confirm metric/log/trace type, units, labels, aggregation, cardinality, null/no-data behavior, time zone, refresh interval, and query cost. Derive defaults, thresholds, refresh cadence, top-N limits, and minimum-traffic cutoffs from target evidence, approved policy, or an explicit measurement objective; otherwise leave them open rather than choosing plausible values. For repeated panels or multi-dimensional alerts, bound the dimension set and prove it remains actionable.
4. Preview and apply through the owner
Use the authoritative source and the narrowest supported operation. Review diffs and exported backups with secrets redacted. A policy-tree replacement, prune, provider-source removal, UID reuse, RBAC change, plugin install, or data-source/dashboard deletion requires explicit confirmation immediately before mutation.
5. Verify each affected plane
| Plane | Minimum evidence |
|---|---|
| Server | Versioned process responds and database health is reported; bounded logs show no new failure loop |
| Provisioning | One owner per UID/path; reconciliation completes; no duplicate/drift warnings across more than one scan |
| Data source | Authorized health/query test succeeds with expected time range and representative data |
| Dashboard | Queries are semantically valid; units/labels/empty states render correctly; links and variables preserve context |
| Alert evaluation | Expected normal, pending, firing, no-data/error, and recovery behavior is observed or explicitly untested |
| Notification routing | Actual labels select the intended policy/contact point; grouping and mute behavior are checked |
| Delivery | A controlled test reaches the intended receiver and a resolved notification is observed when permitted |
| Access | Intended role can act; a lower-privilege role cannot; secrets remain redacted |
Approval boundaries
Explicit approval is required before password resets; user, organization, team, service-account, or RBAC changes; plugin installation or removal; data-source, dashboard, folder, alert-rule, contact-point, or policy deletion; notification-policy replacement; live notification tests; provisioning reloads or service restarts; secret rotation; anonymous/public sharing changes; or direct database recovery. Never edit Grafana's database directly unless the user explicitly authorizes a documented recovery procedure after backup and supportable alternatives are exhausted.
Exit criteria
The task is complete when the requested resource or diagnosis is tied to a known Grafana version and owner, relevant queries or routes are validated at the strongest authorized boundary, no secret was exposed, and rollback remains available. List every stronger boundary not exercised, including authenticated API inventory, live data-source queries, alert firing, receiver delivery, resolved notifications, accessibility testing, reload/restart persistence, or production behavior.
Files (agent-skills)
-
evals
-
evals.json 10.6 KB
Loading…
-
-
references
-
alerting-and-routing.md 6.4 KB
Loading… -
api-and-version-discovery.md 4.4 KB
Loading… -
dashboard-engineering.md 5.4 KB
Loading… -
provisioning-and-gitops.md 6.3 KB
Loading… -
security-and-change-control.md 5.9 KB
Loading… -
source-index.md 8.4 KB
Loading… -
troubleshooting.md 5.6 KB
Loading…
-
-
EVIDENCE-LEDGER.md 5.8 KB
Loading… -
README.md 3.5 KB
# Grafana Skill Design and operate trustworthy Grafana dashboards, alerting, provisioning, access, and troubleshooting across OSS, Enterprise, and Cloud. ## Why Install This Skill Grafana can look healthy while dashboards fail to reconcile, queries tell the wrong story, or alerts never reach the intended responder. Versions, editions, organizations, API generations, and provisioning methods also change which operation is safe. A plausible dashboard or copied API example is not enough. This skill gives your agent a discovery-first workflow for Grafana itself. It identifies version and ownership, validates dashboard and alert semantics, follows notifications from rule to resolution, prevents competing as-code writers, protects credentials and access boundaries, and verifies each affected plane instead of treating `/api/health` as proof that everything works. ## What You Get | Resource | Purpose | |---|---| | `SKILL.md` | Core operating contract, task routing, approval boundaries, and completion criteria | | `references/api-and-version-discovery.md` | Version, edition, organization, authentication, permissions, and `/api` versus `/apis` selection | | `references/dashboard-engineering.md` | Decision-oriented dashboards, query semantics, variables, panels, links, JSON, accessibility, and review | | `references/alerting-and-routing.md` | Rules, instances, labels, policies, grouping, silences, contact points, firing, and resolved delivery | | `references/provisioning-and-gitops.md` | File provisioning, Terraform, Git Sync, APIs/SDKs, Operator ownership, drift, migration, and rollback | | `references/troubleshooting.md` | Structured diagnosis for panels, data sources, provisioning, alerts, proxies, plugins, and migrations | | `references/security-and-change-control.md` | Tokens, secure fields, RBAC, sharing, plugins, destructive actions, backups, and production gates | | `references/source-index.md` | Dated official sources, coverage, live Grafana evidence, exclusions, and refresh rules | | `evals/evals.json` | Portable output-quality cases covering the required capability areas, version/API selection, and unsafe boundaries | | `EVIDENCE-LEDGER.md` | Implementation evidence, verification boundaries, and known gaps | ## Quick Start Start with read-only version and health discovery: ```sh grafana server -v curl --fail --silent --show-error https://grafana.example.com/api/health ``` Then identify the edition, deployment owner, organization, resource provenance, and authorized API scope before planning changes. Never place tokens directly in commands retained by shell history or reports. ## Triggers Use this skill for Grafana dashboards, folders, variables, panels, data sources, annotations, library panels, dashboard JSON, service accounts, RBAC, alert rules, contact points, notification policies, silences, mute timings, provisioning, Terraform/Git Sync ownership, Grafana APIs, plugins, security, upgrades, or Grafana-specific troubleshooting. Do not use it for general observability strategy, SLO or paging-policy design, operating telemetry backends, generic container/orchestrator/proxy work, plugin development, or an authorized security assessment. Load the corresponding specialist skill instead. ## Requirements Reference-only planning needs access to current Grafana documentation. Live work requires authorized access to the target Grafana instance and its owning deployment control plane. API discovery requires an HTTP client and a least-privilege Grafana service-account token; data-source and notification verification require separately authorized test paths. -
SKILL.md 9.5 KB
--- name: grafana description: >- Operate, configure, provision, secure, and troubleshoot Grafana OSS, Enterprise, and Cloud, including dashboards, folders, data sources, annotations, alert rules, contact points, notification policies, silences, mute timings, service accounts, RBAC, plugins, APIs, and as-code workflows. Use for Grafana product work and Grafana-side integrations. Do not use for defining SLOs or paging policy, operating Prometheus/Loki/Tempo/InfluxDB backends, generic Docker/Kubernetes/Terraform/reverse-proxy work, plugin development, or authorized security assessments; use the corresponding specialist skill. license: MIT compatibility: Requires current Grafana documentation and authorized access to the target for live operations. API work requires an HTTP client and appropriately scoped Grafana credentials. metadata: source: https://grafana.com/docs/grafana/latest/ source_index: references/source-index.md research_checked: "2026-07-26" --- # Grafana Operations Treat Grafana as a set of versioned, separately authorized resources with explicit owners. Discover the target, resource provenance, and effective routing before proposing a mutation. A healthy server or attractive dashboard is not proof that provisioning, queries, alert evaluation, or notification delivery works. ## Operating contract 1. Identify Grafana version, edition, deployment mode, organization, folder or namespace, authentication model, and current permission scope before selecting an API or workflow. 2. Inventory existing file provisioning, Terraform/provider state, Git Sync, Grafana Operator resources, and API/UI-managed objects. Assign one authoritative owner per resource UID before changing it. 3. Confirm the target, scope, and rollback path before acting. Read-only discovery may proceed without confirmation. 4. Treat dashboard, folder, data-source, alerting, user/RBAC, plugin, and server-configuration changes as separate authorization scopes. 5. Never print, commit, or preserve secret values from service-account tokens, passwords, `secureJsonData`, decrypted receiver settings, OAuth secrets, signing keys, SMTP credentials, or webhooks. Preserve supported secure configuration fields through their authorized secret mechanism and record redacted metadata only. 6. Validate dashboard and alert queries against the real data source when access exists. Otherwise state the offline limitation and do not claim semantic correctness. 7. Verify the requested boundary. Server health does not prove dashboard provisioning; rule firing does not prove routing; notification delivery does not prove resolution behavior. ## When not to use Use `site-reliability-engineering` to define SLIs, SLOs, error budgets, page-worthiness, severity policy, escalation, and incident practice. Use data-source-specific guidance for PromQL, LogQL, TraceQL, Flux, SQL, storage, and backend operation. Use `docker-compose`, `kubernetes`, `traefik`, or `platform-engineering` for their infrastructure control planes. Use `secure-software-engineering` for preventive security design and `security-audit-methodology` for an authorized assessment. This skill owns Grafana product behavior and Grafana-side integration. ## Read-only discovery Collect only what the current access permits: ```sh grafana server -v curl --fail --silent --show-error "$GRAFANA_URL/api/health" ``` For containers, packages, Helm, or Cloud, use the owning platform's read-only inventory to establish the image/tag, configuration path, deployment mode, and public boundary. Do not dump process environments or resolved configuration containing secrets. With an authorized service-account token, prefer bounded GET requests for the exact resource class; send the token through a protected environment or credential store, not command history or reports. Record: - version and edition: OSS, Enterprise, or Cloud; - deployment owner and persistence: package, container, Compose, Kubernetes, Helm, Operator, or managed stack; - organization, folder, namespace, and target environment; - authentication method and effective permissions; - data-source UIDs and types without secure fields; - dashboard/folder UIDs, alerting resources, and their provenance; - provisioning providers, watched paths, polling interval, deletion/edit settings, and duplicate ownership; - rollback source and the boundary that can be tested safely. Read [API and version discovery](references/api-and-version-discovery.md) before choosing endpoints. Grafana 12 introduced the new `/apis` model, while legacy `/api` routes begin deprecation in Grafana 13 and do not yet have complete one-to-one replacements. ## Route the task | Need | Read first | |---|---| | Discover version, edition, auth, organization, resource APIs, and permission scope | [API and version discovery](references/api-and-version-discovery.md) | | Design or review dashboards, panels, variables, units, transformations, links, annotations, library panels, JSON, or accessibility | [Dashboard engineering](references/dashboard-engineering.md) | | Build or diagnose rule evaluation, labels, contact points, policies, grouping, silences, mute timings, templates, and delivery | [Alerting and routing](references/alerting-and-routing.md) | | Choose or reconcile file provisioning, Terraform, Git Sync, API, Foundation SDK, or Operator ownership | [Provisioning and GitOps](references/provisioning-and-gitops.md) | | Diagnose blank panels, query/auth failures, provisioning drift, failed evaluations, missing notifications, or proxy/auth problems | [Troubleshooting](references/troubleshooting.md) | | Handle credentials, users, service accounts, RBAC, plugins, deletion, sharing, or production-impacting change | [Security and change control](references/security-and-change-control.md) | | Check evidence, version currency, live findings, or refresh rules | [Source index](references/source-index.md) | ## Safe workflow ### 1. Define the operational outcome Name the audience, decision, resource UIDs, authoritative owner, target environment, expected interruption, verification method, and rollback. For dashboards, declare the observability method or question. For alerts, declare owner, severity rationale, runbook/dashboard link, expected route, and noise risk. ### 2. Reconcile ownership before content Compare the running object with every potential writer. Do not edit a provisioned resource through another surface merely because that surface permits it. Detect overlapping provider paths, duplicate UIDs or titles, Terraform/API drift, UI edits that will be overwritten, and deletion or pruning behavior before changing files or objects. ### 3. Validate semantics before presentation Run representative queries over a known time range. Confirm metric/log/trace type, units, labels, aggregation, cardinality, null/no-data behavior, time zone, refresh interval, and query cost. Derive defaults, thresholds, refresh cadence, top-N limits, and minimum-traffic cutoffs from target evidence, approved policy, or an explicit measurement objective; otherwise leave them open rather than choosing plausible values. For repeated panels or multi-dimensional alerts, bound the dimension set and prove it remains actionable. ### 4. Preview and apply through the owner Use the authoritative source and the narrowest supported operation. Review diffs and exported backups with secrets redacted. A policy-tree replacement, `prune`, provider-source removal, UID reuse, RBAC change, plugin install, or data-source/dashboard deletion requires explicit confirmation immediately before mutation. ### 5. Verify each affected plane | Plane | Minimum evidence | |---|---| | Server | Versioned process responds and database health is reported; bounded logs show no new failure loop | | Provisioning | One owner per UID/path; reconciliation completes; no duplicate/drift warnings across more than one scan | | Data source | Authorized health/query test succeeds with expected time range and representative data | | Dashboard | Queries are semantically valid; units/labels/empty states render correctly; links and variables preserve context | | Alert evaluation | Expected normal, pending, firing, no-data/error, and recovery behavior is observed or explicitly untested | | Notification routing | Actual labels select the intended policy/contact point; grouping and mute behavior are checked | | Delivery | A controlled test reaches the intended receiver and a resolved notification is observed when permitted | | Access | Intended role can act; a lower-privilege role cannot; secrets remain redacted | ## Approval boundaries Explicit approval is required before password resets; user, organization, team, service-account, or RBAC changes; plugin installation or removal; data-source, dashboard, folder, alert-rule, contact-point, or policy deletion; notification-policy replacement; live notification tests; provisioning reloads or service restarts; secret rotation; anonymous/public sharing changes; or direct database recovery. Never edit Grafana's database directly unless the user explicitly authorizes a documented recovery procedure after backup and supportable alternatives are exhausted. ## Exit criteria The task is complete when the requested resource or diagnosis is tied to a known Grafana version and owner, relevant queries or routes are validated at the strongest authorized boundary, no secret was exposed, and rollback remains available. List every stronger boundary not exercised, including authenticated API inventory, live data-source queries, alert firing, receiver delivery, resolved notifications, accessibility testing, reload/restart persistence, or production behavior.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.