grafana / detect-angular-dashboards

Detect dashboards depending on Angular data source and panel plugins on a running Grafana instance using the Grafana API.
Apache License 2.0
12 stars 4 forks source link

How to fix it automaticaly? #16

Open AndreyMulin opened 6 months ago

AndreyMulin commented 6 months ago

Hello!

It would be great if this app could automatically click the “migrate” button. Or maybe you can provide an example API call on how to fix this. We have many panels. This is for one org only: cat output.json | jq -r ".[].Detections[].PluginID" | sort | uniq -c | sort -nr 847 graph 15 table-old

Appreciated in advance.

mateuszdrab commented 6 months ago

Agreed.

I have many dashboards with the angular plugin and one thing I noticed is that the migrate button tends to disappear once used so I can only migrate one panel at a time.

Then, I have to save and reload the dashboard.

karnzx commented 5 months ago

I agree too. My current workaround was to enable autoMigrateOldPanels of feature toggles. This will migrate old Angular panels to supported versions, but you still need to save each dashboard to make it permanent. However, it is better than changing each graph in the dashboard manually.

https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/feature-toggles/