Hi. I’m trying to upgrade my Grafana 7.5 container to Grafana 9 including many dashboards and alerts linked to them.
I want to make some new panels in Grafana and import the old ones as well. In doing so, I want to be able to add alerts to my dashboard not by clicking buttons, but by editing the JSON file. The problem is in the previous versions of Grafana, alerts belonged to their respective dashboard and therefore they existed in the JSON file of the dashboard and could be manipulated at the code level, whereas in Grafana 9 the alerts are defined independently and I’m not able to find the JSON file they are defined in, because they are not in the dashboard JSON file anymore.
Where are they?
What’s the most efficient way to migrate these alerts? As exporting from the old dashboard and importing them into the new one doesn’t make the alerts to be defined in the new Grafana 9 alert system.
Environment:
Grafana Docker container