Skip to content

breaking dashboards after version upgrade 3=>4 #730

@m1cha3lf

Description

@m1cha3lf

What happened:

All dashboards break after upgrading the plugin from 3 => 4

What you expected to happen:

Everything should stay the same or improve

How to reproduce it (as minimally and precisely as possible):

I was able to break it down to the missing selector Format in QueryBuilder.

In version 3 i add a new graph as timeseries and define this query

select toStartOfMinute(dt) as dt,
       count(*),
       errorcode    as code

from default.test

where (dt >= $__fromTime AND dt <= $__toTime)

group by dt, code
order by dt asc

In Format i select "Time Series". The graph is correctly showing a timeseries including my group-by data.

In version 4 the Format selector is missing. The time series graph is always ignoring the group-by data and only showing a wired graph with count() information.

I did check the JSON model of the dashboard and i see that it was marked as "queryType": "table" .

If i change manually the JSON model to timeseries it works again.

How can I make a timeseries graph with group-by work again in plugin version 4?

Anything else we need to know?:

Version 4:
Screenshot 2024-02-24 at 09 13 40

Version 3:
Screenshot 2024-02-24 at 09 12 29

Environment:

  • Grafana version: OSS version and Cloud behave the same
  • Plugin version: 3-4
  • OS Grafana is installed on:
  • User OS & Browser: Firefox / Chrome Mac OSx
  • Others:

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions