leoswing / comparequeries-datasource-rc

Grafana plugin for compare queries, with React support
Apache License 2.0
53 stars 0 forks source link

Dashboards: Comparing with Multiple Fields Results in Identical Field Names in Comparison Output #11

Open leo-6C656F opened 1 month ago

leo-6C656F commented 1 month ago

What happened?

When performing a comparison query with more than one field, the resulting field names in the comparison query output are look to be incorrect.

  1. The time field retains its correct name and is properly suffixed as expected in comparison results.
  2. For all other fields, the comparison query applies the field name from the first column to subsequent columns.
image image

What did you expect to happen?

Each field should properly map with he correct suffix.

Did this work before?

No

How do we reproduce it?

  1. Create query with more than one field, ex. time, transaction, dollar_amount
  2. Start Comparison Query

Environment (with versions)?

Grafana: v11.2.0 (c57667e448)

Grafana platform?

Docker

leoswing commented 3 weeks ago

@leo-6C656F Hi , Could you please help to provide the full detail snapshots ? As I use in the Grafana 11.2.2, it works fine.

Environment (with versions) Grafana: v11.2.2

Plugin version: 2.0.2

image
leoswing commented 6 days ago

@leo-6C656F Hi leo, is there any problem about this issue? If no, I will close this in a few days ~