working-with-grafana-mcp

Discover Grafana datasource UIDs and query Prometheus metrics and Loki logs.

Updated Oct 22, 2025
One-click install
npx skills add https://github.com/franroa/chezmoi --skill working-with-grafana-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: working-with-grafana-mcp
Source: https://github.com/franroa/chezmoi/tree/main/private_dot_config/opencode/skills/working-with-grafana-mcp
Command: npx skills add https://github.com/franroa/chezmoi --skill working-with-grafana-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides workflows and patterns for querying Grafana MCP tools and managing dashboards, metrics, logs, and alerts.

Core Features & Use Cases

  • Datasource discovery: Find UID for Prometheus/Loki datasources
  • Dashboard access & data: Quick overview of dashboards and panels
  • Metrics & logs: Query Prometheus and Loki data
  • Incidents: View current incidents and alerts

Quick Start

Query a Grafana MCP dashboard summary to surface panels and alerts.

Frequently Asked Questions about working-with-grafana-mcp

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

FAQPage Schema
How do I query Prometheus metrics and Loki logs from Grafana dashboards?

Query Prometheus and Loki data by discovering datasource UIDs through Grafana MCP tooling, then constructing focused queries to retrieve metrics and logs directly from your dashboards and panels.

Can I automate discovery of Grafana datasources across multiple dashboards?

Yes. Grafana MCP workflows automate datasource discovery to locate Prometheus and Loki UIDs reliably, enabling efficient querying across dashboards without manual configuration.

How do I extract data from Grafana panels and alerts?

Use JSONPath-based data extraction via Grafana MCP tools to pull panel data, alert information, and incident details from dashboards with lightweight rendering and focused queries.

What's the best way to access Grafana alerts and incidents programmatically?

Grafana MCP workflows enable programmatic access to view current incidents and alerts, integrating datasource discovery with alert querying for efficient incident management.

Do I need to manage datasource UIDs manually when working with Grafana MCP?

No. Grafana MCP handles datasource UID discovery automatically, eliminating manual lookup and enabling reliable queries across Prometheus metrics, Loki logs, and dashboard panels.