Grafana dashboard templater 
Description
The Grafana dashboard templater create a valid Grafana dashboard as dictionary based on a template and injected values. You can find sample dashboards here, but note that you will need to adjust the appropriate settings for your own data sources.
Dashboard template folder structure
dashboard-templates <- Folder of the dashboard templates
database <- Dashboard type
postgresql <- Dashboard name
v13 <- Dashboard version
dashboard.json.sample <- Dashboard template
Installation
pip install grafana-dashboard-templater
Example
from grafana_dashboard.model import Model
from grafana_dashboard.dashboard import Dashboard
dashboard_model: Model = Model(dashboard_templates_path="./dashboard-templates", dashboard_type="database",
dashboard_name="postgresql", dashboard_version="v13")
dashboard: Dashboard = Dashboard(dashboard_model)
dashboard_json = dashboard.get_dashboard_json(template_values={"app_name": "PostgreSQL", "prometheus_name": "k8s-sonarqube-postgresql"})
Contribution
If you would like to contribute something, have an improvement request, or want to make a change inside the code, please open a pull request.
Support
If you need support, or you encounter a bug, please don't hesitate to open an issue.
Donations
If you would like to support my work, I ask you to take an unusual action inside the open source community. Donate the money to a non-profit organization like Doctors Without Borders or the Children's Cancer Aid. I will continue to build tools because I like it and it is my passion to develop and share applications.
License
This product is available under the Apache 2.0 license.
Metadata
Release files for grafana-dashboard-templater 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| grafana-dashboard-templater-1.0.3.tar.gz | 8.3 kB | Without provenance | Details for grafana-dashboard-templater-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| grafana_dashboard_templater-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for grafana_dashboard_templater-1.0.3-py3-none-any.whl |
Total release size: 16.6 kB
Release files / grafana-dashboard-templater-1.0.3.tar.gz
| Download URL | grafana-dashboard-templater-1.0.3.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9178c3e6ce040eae5d9171bd3cc3abc03a569060d146afc54daded2d48f0787
|
|
BLAKE2b-256 checksum How to use checksums |
05a37ce1295ddf156bfa642143b2b3e0d0030945280debd2799238bf07c34263
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / grafana_dashboard_templater-1.0.3-py3-none-any.whl
| Download URL | grafana_dashboard_templater-1.0.3-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15b52ed9542359a1e13927fd0b63432b3447955e833aa666cf3a922441476e10
|
|
BLAKE2b-256 checksum How to use checksums |
fa5d77d89eaac914c68d14774558781ff31a76daaf5a311b71d8128b582c3ec7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for grafana-dashboard-templater 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.