Closed nikolay-t closed 4 years ago
The floating stacks one is a general Grafana issue and is caused by not all series having a value for the union of all time values, see: https://github.com/grafana/grafana/issues/9294
The wide-bar issue is a bit of an outlier, so I created an issue to discuss where this needs to be fixed: https://github.com/grafana/grafana/issues/14130
@davkal Thanks. However we don't see same issues with other datasources, i.e. SQL InfluxDB or Prometheus. Can it be that Flux datasource provides data in a way that triggers those Grafana issues?
I believe so, namely, when asked for data in a time range the new flux datasource returns only the datapoints that are there, whereas classic Influx and Prometheus have returned null
values for every interval (step) in the requested range. You can observe this by using the Query Inspector in the other datasources, they will return data that looks like [ts1, null], [ts2, null], [ts3, 4], [ts4, null], ...
. Classic Influx even has a query keyword to make that explicit: fill(null)
.
Agree, see this too if I create InfluxDB SQL query without aggregation and group by time. However it does not seem like we will have fill(null) in Flux language any time soon. As the result, now it makes stacked bars not usable with Flux source. What if we change Flux plugin a way that it will add null values after certain time (will equal to width of bar). Or you feel like 9294 will be resolved soon?
grafana/grafana#9294 needs to be fixed in the vendored flot code, since it should work for all datasources that return interleaved data points. It's not on the immediate roadmap, but I encourage you take a stab at it.
The wide bars should be an easy fix too (max-limiting the calculated bar width in graph.ts
) if you want to give it a go.
Any chance there a query Alias could be exposed? I did a join on two measurements and the resulting legend "name" for the result set is crazy long.
For anyone's future reference: doing a join causes the _field
value to get all mucked up. Quick and dirty way to have your legend show a pretty value: |> set(key: "_field", value: "Label Here")
I'll close this unless there is something clear we could/should do in the datasource plugin to better support this
We see that stacked bars are not displayed correctly with data coming from Flux datasource. We tested with Grafana 5.2.1 and the latest 5.3.2 - the pictures are the same.
Issue N1:
Source CSV data:
Issue N2: Bars are getting displayed as wide rectangles
Source CSV data: