grafana-api

Search and operate Grafana dashboards, folders, datasources, alerts, silences, annotations, and snapshots via bearer-authenticated HTTP calls.

37|13|Updated Jun 23, 2026
One-click install
npx skills add https://github.com/anthropics/claude-tag-plugins --skill grafana-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grafana-api
Source: https://github.com/anthropics/claude-tag-plugins/tree/main/grafana/skills/grafana-api
Command: npx skills add https://github.com/anthropics/claude-tag-plugins --skill grafana-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill lets you inspect and manage Grafana directly from chat, reducing the manual work of searching dashboards, reading panels, running queries, and responding to alerting issues.

Core Features & Use Cases

  • Dashboard Discovery: Search dashboards and folders, open dashboards by UID, and inspect panel definitions.
  • Query Execution: Run datasource queries across Prometheus, Loki, PostgreSQL, and other supported backends.
  • Alert Operations: Review alert rule definitions and live firing state, create or expire silences, and inspect alert history.
  • Operational Changes: Post annotations, manage folders, and create or update dashboards for incident response or reporting.
  • Use Cases: Use it when someone shares a Grafana link, asks what a dashboard shows, wants a metric investigated, or needs an alert silenced.

Quick Start

Ask the Grafana skill to open the dashboard behind this URL, summarize the panels, and run the query for the panel that matches the issue I am investigating.

Frequently Asked Questions about grafana-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search and inspect Grafana dashboards directly from chat?

You can search Grafana dashboards and folders, open dashboards by UID, and inspect panel definitions by making bearer-authenticated HTTP calls to your Grafana instance, eliminating the need to manually navigate the web UI.

Can I run Prometheus or Loki queries in Grafana without opening the browser?

Yes, you can execute datasource queries across backends like Prometheus, Loki, and PostgreSQL by triggering endpoint-specific API calls, retrieving data frames directly to investigate metrics or logs.

How do I create or expire alert silences in Grafana for incident response?

You can review alert rule definitions and live firing state, then create or expire silences via Grafana API calls to suppress notifications during planned maintenance or active incident mitigation.

Does this approach work with both Grafana Cloud and self-hosted instances?

Yes, dashboard investigation, metric querying, and alert debugging work with both Grafana Cloud and self-hosted instances, provided you supply the correct instance URLs and bearer authentication tokens.

What is needed to post annotations or update Grafana dashboards via API?

Posting annotations, managing folders, and creating dashboards requires correct instance URLs, bearer-authenticated HTTP calls, and proper handling of data frames and endpoint-specific time units for successful execution.

Why do my Grafana API calls fail when querying datasources or managing alerts?

Grafana API failures often occur due to missing or incorrect bearer authentication, wrong instance URLs, or mismatched endpoint-specific time units when attempting datasource queries or alert operations.