fr-ser / grafana-sqlite-datasource

Grafana Plugin to enable SQLite as a Datasource
Apache License 2.0
123 stars 17 forks source link

Legend appears twice #96

Closed fr-ser closed 1 year ago

fr-ser commented 1 year ago

The name of the column appear twice in the legend.

The initial issue was raised in the Grafana community:

fr-ser commented 1 year ago

Turns out this happens for two reasons

  1. When adding more than one query for a panel: Grafana prefixes the legend with the "data frame name" to differentiate the queries
  2. When using a time series query with more than one label (multiple lines) the plugin creates multiple data frames (one per label)

Since the data frame name provided little benefit it was removed in PR #98

There will still be occasions when to adjust the display name of the legend. This can be done in the (old "Graph panel") like this:

panel_config display_name

And in the new time series panel like this:

display_name_timeseries

Some more information can also be found in the FAQ: https://github.com/fr-ser/grafana-sqlite-datasource/blob/master/docs/faq.md