stefanprodan / dockprom

Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
MIT License
5.97k stars 1.71k forks source link

Angular Deprecation in Grafana #294

Closed ameer1234567890 closed 5 months ago

ameer1234567890 commented 6 months ago

Now that AngularJS is being deprecated in grafana, are there any plans to move the dashboard to React?

https://grafana.com/docs/grafana/latest/developers/angular_deprecation/

nightah commented 5 months ago

My understanding is that when Angular is deprecated this will automatically change said panels to their new variant. If you want to get rid of the warnings ahead of time you can add the following to your grafana.ini at the bottom:

[feature_toggles]
autoMigrateOldPanels = true
ameer1234567890 commented 5 months ago

I am very new to grafana. Where exactly is my grafana.ini located?

fabiencharrasse commented 5 months ago

For those who use Grafana in docker, you need to create a grafana.ini file, put this in and add a volume pointing to the grafana.ini file you just created :

- /your/path/to/grafana.ini:/etc/grafana/grafana.ini

If not using Docker, refer to the doc

nightah commented 5 months ago

An alternative is to set the following environment variable:

GF_FEATURE_TOGGLES_AUTOMIGRATEOLDPANELS=true

ameer1234567890 commented 5 months ago

I tried adding the environment variable but it did not work.

According to this link, the dashboard needs to be manually converted.

fabiencharrasse commented 5 months ago

I tried adding the environment variable but it did not work.

According to this link, the dashboard needs to be manually converted.

It didn't work for me either. Try my method with the grafana.ini file

ameer1234567890 commented 5 months ago

The garafa.ini method worked for me. Thanks