What Grafana version and what operating system are you using: grafana 8.0.3, grafana running in docker container on centos host
What are you trying to achieve?: I’m trying to use the multi dimensional rule, in a query I bring several series: several pressure sensors identified by their alias and their pressure values at different time instants. I want to be able to group them by alias and value to check if the last sample exceeds a certain value.
How are you trying to achieve it?: In the query, against a postgresql instance, I use a window function to keep the last value in time for each alias. Then I use a mathematical expression to define that if the value exceeds 10 the alert is generated.
What happened?: When previewing my alert I get an error, it tells me that: the frame cannot be uniquely identified by its tags: it has duplicate results with {} tags.
What did you expect to happen?: Since in the mathematical function of query A < 10 , ($A < 10) it does identify each series individually and returns a 1 or 0 if the value condition is met or not, I would expect this series distinction to be reflected in different labels so that the alerts are identified by this label.
Can you copy/paste the configuration(s) that you are having problems with?:
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were. Info: invalid format of evaluation results for the alert definition : frame cannot uniquely be identified by its labels: has duplicate results with labels {}
Did you follow any online instructions? If so, what is the URL?: Create Grafana-managed alert rules | Grafana documentation