Hello.
I’m using grafana v6.6.2 with influxdb and telegraf.
I’m trying to create a dashboard template and reuse it with different variables. Important detail here is that my dashboard has an alert. I have succeeded making a full copy of dashboard via API:
- Got the JSON model from original dashboard
- Removed dashboard ID
- Updated dashboard UID and title
- Inserted the JSON to API call
- Got the exact copy of the dashboard with different name and UID
This copy of a dashboard has the same alert with the same rule. But it does not ever trigger. However the same alert rule perfectly works on the original dashboard (since it’s the same query I can see how my action changes one alert state but does not affect the other). Seems like alert query on a second dashboard does not return any data.
What I’ve tried so far:
- Remove and recreate alert rule on a second dashboard manually from UI.
- Disable alert on initial dashboard.
- Remove dashboard on the initial alert.
Thanks for your replies.