Alert based on query in panel instead of separated query in new grafana alerting

  • What Grafana version and what operating system are you using?
    docker: 8.3.4-debian-10-r0

  • What are you trying to achieve?
    In legacy alerting an alert is associated with a panel, but for new grafana alerting system it’s separated out, I’m looking for a way to setup alert that’s based on query for the panel so I dont need to update the alert’s query when panel query is updated.

  • How are you trying to achieve it?
    I’ve looked the alert definition and couldnt find anywhere to make alert based on existing query from the panel.