[OSS tool] Write Grafana pre-build dashboards in Python

GitHub: GitHub - fzyzcjy/grafana_dashboard_python: Write Grafana dashboards in Python, without losing thousands of dashboards in the zoo

Shortly speaking, in addition to the traditional “generate Grafana dashboards from Python code”, now you can convert all pre-built dashboards (Dashboards | Grafana Labs) into Python code for customization.

Using scripts to generate dashboards is recommended by Grafana official “best practice”, because it avoids a lot of repetition and ensures consistency.

It is just a small tool I use internally, but since it may also be useful for others, I open sourced it :slight_smile:

2 Likes

Hi @fzyzcjy

Thank you for sharing this and appreciate your contribution :+1:

I will this post into our How To category and add more tags.

I see that your GitHub Readme page is already well written as how to use this tool but If you want to share e.g a small video to demonstrate the usage then it is welcome !! :slight_smile:

Hi, thank you for your reply!

I see that your GitHub Readme page is already well written as how to use this tool but If you want to share e.g a small video to demonstrate the usage then it is welcome !! :slight_smile:

Looks reasonable! I will add that when having some time. Tracking issue: Add something like a small video to demonstrate · Issue #2 · fzyzcjy/grafana_dashboard_python · GitHub

@usman.ahmad By the way, is it OK to add this package to Grafana dashboard best practices | Grafana documentation (next to grafonnet/grafanalib)? IMHO, if someone wants to move from “Low/Medium” to “High”, he or she may have existing JSON-based dashbaords, and thus grafana_dashboard_python can be helpful to quickly reach “High” stage (while Grafanalib seems hard to do so).

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.