Grafana as Code

Transfer our dashboard into a code representation via grafanalib.
This commit is contained in:
Maximilian Paß
2022-10-26 16:51:56 +01:00
parent b98e3deb40
commit 44aa5d73a2
31 changed files with 745 additions and 1746 deletions

View File

@ -0,0 +1,16 @@
# Grafana Dashboard Deployment
## Grafanalib
We use [Grafanalib](https://github.com/weaveworks/grafanalib) for the definition of our dashboard.
You need to install the python package: `pip install grafanalib`.
### Generation
Generate the Grafana dashboard by running `main.py`.
The generated Json definition can be imported in the Grafana UI.
### Deployment
You can copy the generated json into the field under the dashboards setting -> "JSON Model".
The version number needs to match!