GithubHelp home page GithubHelp logo

Comments (8)

davkal avatar davkal commented on August 29, 2024

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: grafana/grafana#9294

The wide-bar issue is a bit of an outlier, so I created an issue to discuss where this needs to be fixed: grafana/grafana#14130

from influxdb-flux-datasource.

nikolay-t avatar nikolay-t commented on August 29, 2024

@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?

from influxdb-flux-datasource.

davkal avatar davkal commented on August 29, 2024

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).

from influxdb-flux-datasource.

nikolay-t avatar nikolay-t commented on August 29, 2024

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?

from influxdb-flux-datasource.

davkal avatar davkal commented on August 29, 2024

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.

from influxdb-flux-datasource.

bryanspears avatar bryanspears commented on August 29, 2024

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.

from influxdb-flux-datasource.

bryanspears avatar bryanspears commented on August 29, 2024

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")

from influxdb-flux-datasource.

ryantxu avatar ryantxu commented on August 29, 2024

I'll close this unless there is something clear we could/should do in the datasource plugin to better support this

from influxdb-flux-datasource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.