# Grafana Dashboard as Code Generator

> Generates Grafana dashboards programmatically using Grafonnet (jsonnet), the Grafana HTTP API, and grafana-toolkit. Supports multi-datasource panels with Prometheus, Loki, and Tempo queries.

- Skill: `agentskillexchange/grafana-dashboard-as-code-generator` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/grafana-dashboard-as-code-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/grafana-dashboard-as-code-generator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/grafana-dashboard-as-code-generator

---


# Grafana Dashboard as Code Generator

Generates Grafana dashboards programmatically using Grafonnet (jsonnet), the Grafana HTTP API, and grafana-toolkit. Supports multi-datasource panels with Prometheus, Loki, and Tempo queries.

## Prerequisites

Grafonnet, Jsonnet, Grafana HTTP API, grafana-toolkit

## Installation

Basic usage or getting-started notes:
- Grafonnet uses the [Jsonnet](https://jsonnet.org/) programming language.
- **NOTE**: There is a significant performance issue with the C implementation of Jsonnet. You are strongly
- recommended to use the newer [go-jsonnet](https://github.com/google/go-jsonnet) Jsonnet implementation.

- Source: https://github.com/grafana/grafonnet
- Extracted from upstream docs: https://raw.githubusercontent.com/grafana/grafonnet/HEAD/README.md

## Documentation

- https://grafana.github.io/grafonnet/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/grafana-dashboard-as-code-generator/)

