Open mmaha-CC opened 11 months ago
thank you for creating this issue I have reproduced it following your repro steps
Forwarding issue to dashboard squad
This looks like an Expressions issue, so I'm re-assigning to @grafana/observability-metrics
For investigation, is this impacted by this PR here? Expression: Fix a bug of the display name of the threshold expression result
Hi, was wondering if there's been any updates on this issue
What happened?
When attempting to extend the expression to include more than two queries (e.g.,$B+$F-$C-$E-$D), an issue arises. Instead of displaying the consolidated legend reflecting the total expression, Grafana seems to incorporate the query object or string of the last reference (in this case, $D) into the legend.
What did you expect to happen?
The legend should accurately represent the cumulative result of the entire expression, reflecting the combination of all referenced queries, i.e., Total Messages Pushed to Queue
Did this work before?
No. When utilizing Grafana expressions involving references to two queries (e.g., $A + $B), the visualization works as expected, and the legend appropriately displays the desired information, such as "Total Messages Pushed to Queue."
However, when attempting to extend the expression to include more than two queries (e.g., $A + $B + $C), the legend would erroneously show details related to the query of $C. This behaviour is not aligned with expectations and can be observed in instances where the expression involves more than two query references.
How do we reproduce it?
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana: v10.1.4 OS: Ubuntu Browser: Brave
Grafana platform?
None
Datasource(s)?
No response