Skip to content

Dashboards

Example dashboards:

Provisioning

Provisioning docs

Dashboard provisioning

When provisioning a dashboard, make sure you don't have any DS_PROMETHEUS variables in it, because grafana will fail to load it with Datasource named ${DS_PROMETHEUS} was not found. See also:

Export the dashboard using the View JSON button of the Share/Export tab.

Grafana Dashboards as code

As of 2022-08, the best practice of dashboards in code is very much in flux. grafonnet-lib was the best practice so far, but Grafana points out in their roadmap for everthing in code that they are restructuring their internal schemas and will use cue in the future.

Grabana

Dark

jsonnet

see ../../coding/jsonnet.md

Use by i.e. kubernetes-mixin dashboards. kubernets-mixin uses:

weave grafanalib

weaveworks/grafanalib

Python library for building Grafana dashboards

➕ Python ➕ Actively maintained

grafana-dash-gen

➖Javascript

grafyaml

Outdated tools

Polly

Polly is a specification for parameterized packages of observability-related config objects such as dashboards, alerts and more.

Grafonnet-lib

grafonnet-lib uses jsonnet

Attention: We're in the process of introducing generated code that can be used instead of the manually maintained Jsonnet code in the grafonnet directory. The generated code lives in grafonnet-7.0. It's generated from a new project, grafana/dashboard-spec. The generated code is still incomplete, however, the components present are useable. We very much appreciate contributions in grafana/dashboard-spec for components yet to be added.

dashboard-spec

pamac install jsonnet-bundler-bin jsonnet grafana/dashboard-spec

Next generation dashboard scripting from Grafana itself. Still WIP.

grafana-dashboard-builder

Generate Grafana dashboards with YAML using Python

➖ Out of date (last commit 2021-01)

Autograf

Dynamically generate Grafana dashboard based on Prometheus metrics

Grafana

You can make Grafana accessible without any login required by enabling anonymous access in the configuration file.