grafana

Provides best practices for Grafana and Loki APIs, LogQL, and provisioning.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/billyfranklim1/claude-skills --skill grafana-billyfranklim1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grafana
Source: https://github.com/billyfranklim1/claude-skills/tree/main/plugins/grafana/skills/grafana
Command: npx skills add https://github.com/billyfranklim1/claude-skills --skill grafana-billyfranklim1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Grafana and Loki usage can be error-prone due to complex queries, templating, alerting configurations, and provisioning workflows. This guide provides best practices to avoid common mistakes and to streamline API usage for Grafana and Loki.

Core Features & Use Cases

  • Grafana API and Loki API practical examples for health checks, dashboards, datasources, and log queries.
  • LogQL and templating best practices for reliable dashboards and alerting configurations.
  • Provisioning and common errors to avoid when migrating dashboards and datasources across environments.

Quick Start

Run a health check on your Grafana instance and retrieve sample logs from Loki using the included API examples

Frequently Asked Questions about grafana

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

FAQPage Schema
How do I avoid common mistakes when writing LogQL queries for Loki dashboards?

To write reliable LogQL queries for Loki dashboards, apply best practices for templating and syntax to avoid common errors. Validate queries using included API examples and ensure they match datasource configurations before deploying dashboards to production.

What is the best way to provision Grafana dashboards and datasources across environments?

Provisioning Grafana dashboards and datasources across environments requires following best-practice guidelines to avoid common migration errors. Use the Grafana API with standard curl commands to automate configuration deployment and maintain consistency between local and hosted instances.

How do I run a health check on my Grafana instance and retrieve sample logs from Loki?

Run a health check on your Grafana instance and retrieve sample logs from Loki using practical API examples. Query the Grafana API and Loki API with commonly used curl commands to verify instance health and validate datasource connectivity.

Do I need API access to configure Grafana alerts and perform LogQL-based log analysis?

Yes, API access is a prerequisite for configuring Grafana alerts and performing LogQL-based log analysis. Satisfy requirements including API access and commonly used curl commands to query datasources, configure alerting, and streamline provisioning workflows.

Why does my Grafana alerting configuration fail when migrating datasources?

Grafana alerting configurations fail during datasource migration due to common provisioning errors and templating mistakes. Follow best-practice guidelines for provisioning datasources and validate alerting rules using API examples to ensure reliable configuration across environments.

Can I use Grafana API examples with both local and hosted Grafana environments?

Yes, Grafana API examples work with both local and hosted Grafana environments. Apply the included curl commands and provisioning best practices to configure dashboards, datasources, and alerts regardless of your deployment environment.