grafana-http-api

Manage Grafana resources via HTTP API with service account token authentication.

7|1|Updated Jul 12, 2026
One-click install
npx skills add https://github.com/julianobarbosa/claude-code-skills --skill grafana-http-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grafana-http-api
Source: https://github.com/julianobarbosa/claude-code-skills/tree/main/skills/grafana-skill
Command: npx skills add https://github.com/julianobarbosa/claude-code-skills --skill grafana-http-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables programmatic management of Grafana resources through its HTTP API.

Core Features & Use Cases

  • Dashboards & Data Sources: Create and query dashboards and data sources.
  • Alerting & Annotations: Manage alert rules, contact points, and annotations.
  • Users/Teams: Manage organizations, users, teams.
  • Use Case: Auto-create a dashboard from a spec and attach a Prometheus datasource.

Quick Start

Authenticate using a service account token and call the API to fetch dashboards.

Frequently Asked Questions about grafana-http-api

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

FAQPage Schema
How do I automate Grafana dashboard creation and management programmatically?

Automate Grafana dashboard creation, updates, and deletion via HTTP API using service account token authentication. The Skill provides standardized JSON payloads for CRUD operations on dashboards, data sources, folders, and alerts across multi-organization environments without manual UI interaction.

Can I create and attach data sources to Grafana dashboards through an API?

Yes. The HTTP API supports creating dashboards and attaching Prometheus or other data sources programmatically. Use service account tokens to authenticate and send JSON configurations that define dashboard layouts, linked data sources, and visualization settings in a single automated workflow.

What authentication method does the Grafana HTTP API use?

The Grafana HTTP API uses service account token authentication. Generate a token in Grafana, then include it in API requests to securely perform CRUD operations on dashboards, data sources, users, organizations, and alerts without exposing user credentials.

How do I manage Grafana alerts, contact points, and annotations programmatically?

Manage alert rules, contact points, and annotations via HTTP API calls with standardized JSON payloads. Service account token authentication enables you to create, update, and delete alerting configurations and annotations across Grafana organizations automatically.

Can I use the Grafana API to manage users, teams, and organizations?

Yes. The HTTP API supports creating, reading, updating, and deleting users, teams, and organizations across multi-organization Grafana deployments. Use service account tokens to automate user provisioning and access control as part of admin workflows.

What's the best way to query and retrieve existing dashboards and data sources from Grafana?

Query dashboards and data sources using the HTTP API with service account token authentication. The Skill retrieves full dashboard definitions and data source configurations in JSON format, enabling you to audit, migrate, or version-control your Grafana resources.