Dashboards¶
Example dashboards:
Tips¶
Provisioning¶
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.
grafonnet-libis deprecated in favor ofgrafonnet- A complete guide to managing Grafana as code: tools, tips, and tricks
- Grafana thema shows progress.
- Grafana dashboards — best practices and dashboards-as-code
Grabana¶
Dark¶
jsonnet¶
see ../../coding/jsonnet.md
Use by i.e. kubernetes-mixin dashboards. kubernets-mixin uses:
- Grafana Labs' Jsonnet libraries
- grafonnet
weave 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.
- Example Dashboards
- Vim jsonnet filetype plugin
- Grafana as code medium article
- Frodem video
- Example unit names
- categories.ts
- Tutorial with templates
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.