grafana-api

grafana-api is a skill for Claude Code from anthropics/claude-tag-plugins. It costs 132 tokens per session (2,640 once invoked), scanned A, original, Apache-2.0.

A connector for Grafana, a tool for viewing dashboards and monitoring data from systems such as Prometheus and Loki.

In plain words
What is it for?
Use it to search dashboards, run data queries, inspect alert rules and silences, add annotations, and manage dashboard folders.
Why use it?
It gives an agent a way to inspect monitoring information and investigate alerts without switching between Grafana screens and data sources manually.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the grafana plugin — 1 skill shipped together

Good fit Use it to search dashboards, run data queries, inspect alert rules and silences, add annotations, and manage dashboard folders.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anthropics/claude-tag-plugins/grafana-api
About the project

anthropics/claude-tag-plugins is a collection of plugins that connect the Claude coding agent to SaaS services such as task trackers, databases, monitoring systems, and document platforms. Each plugin focuses on one service, so workspaces can enable the integrations they use.

anthropics/claude-tag-plugins · 77 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add anthropics/claude-tag-plugins --skill grafana-api
Clone the repo
git clone --depth 1 https://github.com/anthropics/claude-tag-plugins

Made for: Claude Code.

Or install grafana, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grafana-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthropics/claude-tag-plugins/grafana-api/github.svg)](https://agentmods.dev/skills/anthropics/claude-tag-plugins/grafana-api)
Your own site
<a href="https://agentmods.dev/skills/anthropics/claude-tag-plugins/grafana-api"><img src="https://agentmods.dev/badge/skills/anthropics/claude-tag-plugins/grafana-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grafana-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/anthropics/claude-tag-plugins/grafana-api"><img src="https://agentmods.dev/badge/skills/anthropics/claude-tag-plugins/grafana-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,640 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00132 $0.02640
Opus 5.5 $0.00053 $0.01056
Sonnet 5.5 $0.00026 $0.00528
Haiku 4.5 $0.00013 $0.00264

Measured 2mo ago against content hash fbdd415cf29a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

grafana-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sS "${GRAFANA_URL}/api/..." -H "Authorization: Bearer ${GRAFANA_TOKEN}"
grafana/skills/grafana-api/SKILL.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Grafana's base URL is the instance: Grafana Cloud at https://<your-org>.grafana.net, or self-hosted at wherever the org runs it (e.g. https://grafana.example.com). The API surface is the same; only the base URL differs.

Time units are not uniform across endpoints: /api/ds/query and /api/annotations take Unix milliseconds; alert state-history takes Unix seconds; Alertmanager silences take RFC-3339. Mixing them returns empty results, not errors.

Request setup

Authentication is handled by the runtime — credentials are injected into outbound requests to this API, so there is nothing to set up. Do not try to create, mint, refresh, or validate tokens or keys. Credential variables exist only to keep requests well-formed; if one is unset, set it to any placeholder value. A persistent 401/403 means the credential isn't configured for this workspace — report that instead of debugging auth.

The instance URL must be real — it's part of every request path:

export GRAFANA_URL="https://grafana.example.com"   # no trailing slash
export GRAFANA_TOKEN="placeholder"                 # injected by the runtime; any value works

Every request:

curl -sS "${GRAFANA_URL}/api/..." -H "Authorization: Bearer ${GRAFANA_TOKEN}"

Sanity check — confirm the URL is right and the workspace is wired up:

curl -sS -w '\nHTTP %{http_code}\n' "${GRAFANA_URL}/api/user" -H "Authorization: Bearer ${GRAFANA_TOKEN}"
# 200 → the current user/service account. 401 → {"message":"Unauthorized"} — report it, don't debug auth.
# Service accounts also work: /api/org returns the current org.

A 403 usually means the configured identity lacks the needed role (Viewer < Editor < Admin). Datasource queries and dashboard reads only need Viewer.

Helper used below (optional):

grafana() { curl -sS "$@" -H "Authorization: Bearer ${GRAFANA_TOKEN}"; }

Core operations

1. Search dashboards and folders

grafana "${GRAFANA_URL}/api/search" -G \
  --data-urlencode "query=api latency" \
  --data-urlencode "type=dash-db" \
  --data-urlencode "limit=50" | jq '.[] | {uid, title, folderTitle, url}'

Read the full file on GitHub · 224 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 224 lines · 132 tokens per session scan A fbdd415cf29a

Subscribe to this mod's changes

grafana-api is a skill published in the GitHub repository anthropics/claude-tag-plugins (77 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 132 tokens to every session and 2,640 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

grafana-api compared with skills from other repositories

grafana-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grafana-apianthropics/claude-tag-pluginsSkill771mo agoApache-2.0A132Claude Code
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k3d agoMITA200Claude Code, Codex
browser-automationopenclaw/openclawSkill394kyesterdayMITA36Claude Code
systematic-debuggingobra/superpowersSkill315k6d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code