How can i use variables in grafana alert queries [ grafana version V9.0.2]

This are my variables i need to use this variables in Grafana alerts queries


This is my queries

I need to replace the pod names with variables
Please let me know how can i achieve this.

@sandeepito88 dashboard variables aren’t supported in alert queries. Can you share more about your use case and what your end goal for the alert is?

You can address labels returned from the query result to create the notification:

@melori.arellano As i mentioned i the above screen shots you can see pod name are hardcoded so every time if pod get restarts pod name will get changed so every time manual we cannot edit the alert right so can we use variables so that it will overwrite the pod name once pod restarts.