git404hub

what is grafonnet fr?

grafana/grafonnet — explained in plain English

Analysis updated 2026-07-25 · repo last pushed 2026-07-23

545JsonnetAudience · ops devopsComplexity · 3/5ActiveSetup · moderate

tl;dr

Grafonnet lets you write Grafana dashboards as code using Jsonnet instead of building them by hand in the UI, so dashboards can be version-controlled, templated, and shared like any other code.

vibe map

mindmap
  root((repo))
    What it does
      Generates dashboard JSON
      Writes dashboards as code
      Auto-updates from Grafana API
    Tech stack
      Jsonnet
      Grafana
    Use cases
      Template across environments
      Version control dashboards
      Team collaboration on dashboards
    Audience
      Ops and DevOps teams
      Infrastructure engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Generate consistent Grafana dashboards across dev, staging, and production environments from a single template.

VIBE 2

Store dashboards in your code repository so changes go through code review and version tracking.

VIBE 3

Reuse and share dashboard definitions across teams instead of recreating them manually in the Grafana UI.

what's the stack?

JsonnetGrafana

how do i run it?

Difficulty · moderate time til it works · 30min

Requires installing the Jsonnet compiler and familiarity with Jsonnet configuration language.

This project is labeled experimental with no production guarantees, license details are not specified in the available documentation.

in plain english

Grafonnet is a tool that lets you generate Grafana dashboards using code instead of building them by hand. Grafana is a popular platform for visualizing data, metrics, logs, traces, anything you want to monitor. Instead of clicking through the Grafana UI to create and configure dashboards, you write them in a configuration language called Jsonnet, and the library translates that into the JSON files Grafana understands. At a high level, you write a small script describing your dashboard, its title, panels, data sources, and so on, and run a command that produces the finished dashboard file. This means your dashboards live in your codebase alongside everything else, can be version-controlled, reviewed, and shared through the same workflows your team already uses for software development. This is useful for teams managing many dashboards or environments. If you run infrastructure across multiple stages, say, dev, staging, and production, and need consistent dashboards in each, defining them as code means you can template and reuse them rather than recreating the same work manually. It also helps when many people need to collaborate on dashboard changes, since those changes go through the same review process as any other code. One notable thing about this project is how it stays current with Grafana. The library is automatically generated from Grafana's own API definitions, so when Grafana adds new features or panel types, the library can follow along without someone manually updating it. This was a problem with its predecessor, which was hand-maintained and fell behind. The project is explicitly labeled experimental, with no production guarantees, so teams considering it should understand it comes with that caveat.

prompts (copy fr)

prompt 1
Write a Grafonnet script in Jsonnet that creates a Grafana dashboard with a title, a graph panel showing CPU usage, and a data source pointing to Prometheus.
prompt 2
Using Grafonnet, create a reusable dashboard template that can be parameterized for dev, staging, and production environments with different data sources.
prompt 3
Show me how to generate a Grafana dashboard JSON file from a Grafonnet Jsonnet script using the jsonnet or grafonnet CLI command.
prompt 4
Convert an existing Grafana dashboard JSON into a Grafonnet Jsonnet script so I can manage it as code.
prompt 5
Create a Grafonnet script that defines a dashboard with multiple panels including a stat panel, a graph panel, and a table panel, all using the same Prometheus data source.

Frequently asked questions

what is grafonnet fr?

Grafonnet lets you write Grafana dashboards as code using Jsonnet instead of building them by hand in the UI, so dashboards can be version-controlled, templated, and shared like any other code.

What language is grafonnet written in?

Mainly Jsonnet. The stack also includes Jsonnet, Grafana.

Is grafonnet actively maintained?

Active — commit in last 30 days (last push 2026-07-23).

What license does grafonnet use?

This project is labeled experimental with no production guarantees, license details are not specified in the available documentation.

How hard is grafonnet to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is grafonnet for?

Mainly ops devops.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.