GoshPosh / grafana-meta-queries

Grafana plugin for calculating time period metrics like week over week, month over month and year over year etc.
Apache License 2.0
284 stars 71 forks source link

Cannot read property 'length' of undefined #108

Open dwsorge opened 4 years ago

dwsorge commented 4 years ago

Hello,

I am using the heatmap plugin with MetaQuery and I am getting "Cannot read property 'length' of undefined".

The Grafana query inspector is returning data which is coming from InfluxDB.

When I view in Chrome the error is: Cannot read property 'length' of undefined When I view in IE the error is: Cannot read property 'length' of undefined or null reference

I am using Grafana v7.1.3 MetaQuery 0.0.3

This is working with Grafana v6.2.5 and MetaQuery 0.0.1 but this issue is blocking our upgrade.

The queries I'm using look like this

SELECT sum("available") FROM "" WHERE ("site" =~ /^/ AND "resource" =~ /^$/) AND $timeFilter GROUP BY time(1h) fill(none)

image

Gauravshah commented 4 years ago

can you try changing it to a table to better understand the numbers ? can you also post a screenshot of your panel setting ? can you try with meta-queries latest with grafana 6.2.5 just to make sure its not metaqueries bug

dwsorge commented 4 years ago

I changed to a table and it still showing no data.

image

When I remove meta-queries I can get the data to show up in the table.

I tried running the latest meta-queries with Grafana v6.2.5 and it works there.

Here are the panel settings:

image

image

The query inspector shows that there is data when using the latest meta-queries with Grafana v7.1.3 but I still get the error when it tries to show the carpet plot.

image

dwsorge commented 4 years ago

Hello,

Is there any other info I can provide you that would be useful?

Thanks!

favorinfo commented 4 years ago

the same problem with grafanav7.13 and master version query with influxdb

jonathonpuff commented 2 years ago

Possible to get this prioritized and assigned? We're stuck on 6.2.5 until resolved.

jonathonpuff commented 2 years ago

@Gauravshah can you revisit this? Like I mentioned in February we're locked into 6.2.5 until this gets addressed.

jonathonpuff commented 2 years ago

@Gauravshah any feedback or required information?

Gauravshah commented 2 years ago

apologies @jonathonpuff stuck into multiple things at work and unable to get on this one. @ShilpaSivanesan should be able to take a look at this in 4 weeks time

jonathonpuff commented 1 year ago

Hi @Gauravshah and @ShilpaSivanesan , is this still on the list to be looked at? Thanks for the help here.

vineethpaul commented 1 year ago

@jonathonpuff Please share screenshot of your query panel. May I know the datasource and it's version.

dwsorge commented 1 year ago

Here is the query panel

image

The data is originating from InfluxDB but we are using MetaQueries 0.0.9 from here (https://grafana.com/grafana/plugins/goshposh-metaqueries-datasource/)

The version of Grafana where this isn't working is v8.5.4 and the version where we do have it working is v6.2.5.

From the query inspector I can see that we are getting data that should be displayed but the panel is empty.

image

Thank you very much

Dustin

jonathonpuff commented 1 year ago

Hi @vineethpaul , any feedback on @dwsorge input?

jonathonpuff commented 1 year ago

Hi @vineethpaul , any progress?

jonathonpuff commented 1 year ago

Hi @vineethpaul checking in on when this can be looked at. Thanks!