Beam-Connectivity / grafana-dashboard-manager

Import and export Grafana dashboards for backup and dynamic provisioning
MIT License
59 stars 13 forks source link

Slash character on dashboard name #21

Closed matteoMiglio closed 11 months ago

matteoMiglio commented 1 year ago

I've encountered a bug while downloading dashboards with the command:

grafana-dashboard-manager \          
    --host <host> \
    --token <token> \
    download all \
    --destination-dir export_dir

One of our dashboards had a slash in the name, such as service-metrics 2023/11/23. The script downloaded the dashboard correctly, but it created a structure like this:

└─ export_dir
    └─ service-metrics_2023
        └─ 11
           └─ 23.json

Versions

Python 3.10.11 Grafana 8.3.2