Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana 7 #104

Closed
meyerder opened this issue Jul 13, 2020 · 46 comments
Closed

Grafana 7 #104

meyerder opened this issue Jul 13, 2020 · 46 comments

Comments

@meyerder
Copy link

I cant seem to get this to work on Grafana 7.0 even when it is a signed plugin

@mazamsezer
Copy link

mazamsezer commented Jul 14, 2020

Same here. I installed Grafana Enterpeise 7. I had one dashboard with three panels having MetaQueries, working on 6:latest (I am using Docker) which stopped working on Enterprise 7.

It says cannot read the length of null or something similiar. As I do not have access to my PC at the moment, I cannot give you the exact error.

Is there anything I can do to make it work?

@meyerder
Copy link
Author

meyerder commented Jul 14, 2020 via email

@Gauravshah
Copy link
Member

I tried on community edition sometime back and I was able to get it working on local. Will give it a shot. Can you paste in screenshot meanwhile

@gonfunko
Copy link

I'm seeing what I think is the same issue after updating Grafana; my config was previously working. Error message and queries are attached.
Screen Shot 2020-07-16 at 9 25 50 PM
Screen Shot 2020-07-16 at 9 27 26 PM

@DerAndereAndi
Copy link
Contributor

@gonfunko happens here on 7.1 as well. Grafana 7.0.x works fine with the current version. So there must be changes in 7.1 regarding how plugins works.

@Gauravshah
Copy link
Member

verified it works with 7.0.3, but doesn't work with 7.1.x. Release notes don't have any breaking changes. Will look into and get back in couple of days

@meyerder
Copy link
Author

I must be doing something wrong.. I set it to mixed (7.02) and tell it to leverage Query A... Cannot set property 'hide' of undefined

@meyerder meyerder mentioned this issue Jul 20, 2020
@meyerder meyerder reopened this Jul 20, 2020
@meyerder
Copy link
Author

Figured out how to reopen...

@cjs226
Copy link

cjs226 commented Jul 23, 2020

Same, not working on 7.0.5.

@arigit
Copy link

arigit commented Aug 1, 2020

Same issue on 7.1.1 enterprise - missing this great plugin

@earth08
Copy link

earth08 commented Aug 7, 2020

I have same issue,
When selecting metaqueries as datasource, no data is displayed.
Well hope everything gets fixed asap.
I am using grafana 7.1.1 as docker provided by frenk as addon for home assistant.

@Gauravshah
Copy link
Member

This seems to be fixed in 7.1.3

Screenshot 2020-08-12 at 5 15 49 AM

@arigit
Copy link

arigit commented Aug 12, 2020

@Gauravshah I confirm the same, I can now add metaqueries to my panels.

However, at least in the moving average case, the behavior with Moving Averages seems weird, it seems to be just scaling down the main graph by a factor equal to the amount of periods I choose for the average.
E.g. if I select Periods = 2, the "moving average" graph is the same as the main graph by divided by two.
WIth Period = 4:

image

image

image

Could this be a bug?

@Gauravshah
Copy link
Member

@arigit can you open a different ticket ?
was this working before ?
can you post a screenshot with data in table form ? that will better help us compare numbers
also Moving Average computes over last 4 days ( for period =4) and not last 4 data points

@arigit
Copy link

arigit commented Aug 12, 2020

Thanks @Gauravshah - I will open a ticket later today and attach the data. This wasn't working before, I'm new to this plugin and it seems to fit my needs perfectly if I can get it to work. My challenge is that I'm trying to apply it to an IP bandwidth graph that is sampled once every 10 seconds, so a 1-day moving average won't cut it. In the IP/networks world 5-minute moving averages are most common and this is what I was trying to obtain with the addon. I tried using fractional numbers in the Period fields but that didn't work either. We can continue the discussing in the new ticket.

@Gauravshah
Copy link
Member

we added support for timeshiftUnits I think we need to add same for Moving Average that should fix your issue.
https://github.com/GoshPosh/grafana-meta-queries/pull/62/files

@arigit
Copy link

arigit commented Aug 13, 2020

Opened #107; I believe #104 has been solved

@Gauravshah yes it seems my ask is exactly the same that was done for TimeShift, but applied to MovingAverage, so I named the #107 following the same naming convention you used (i.e. migration from "Period" (days) to "MovingAverageUnits")

@earth08
Copy link

earth08 commented Aug 22, 2020

@Gauravshah
I am using grafana as docker as homeassistant addon.
Latest version of grafana 7.1.4 installed as addon.
Meta queries doesn't work.
Please someone can guide me to get this work.
Thanks

@DerAndereAndi
Copy link
Contributor

@Gauravshah it seems to work with the Grafana sample data, but existing panels don't work and creating a new panel with other data sources don't seem to work. Does this happen for you as well?

@IstvanPeter
Copy link

We have some dashboards where we have to compare the data with an earlier state and it worked till version 7.0.x.

Reproduce steps:
Create a chart with MetaQuery and select datasource for the Query "A" a Cloudwatch datasource.
Select one of the native metrics
Add a Query with datasource "MetaQuery" and set the metric name of the Query "A"

You get "Cannot read property 'forEach' of undefined" error
image

@zhukaiqiang
Copy link

7.1.5 Meta-Queries still cannot be used

@earth08
Copy link

earth08 commented Sep 12, 2020

Same here not working with 7.1.5

@Chris-Tophski
Copy link

Just updated to Grafana 7.1.5 and updated all plugins. Earlier, MetaQueries caused browser crashes quite often in my case, so I stopped using it, but now I wanted to give it another try after a while. Now, my panels with MetaQueries involved completely stopped working with several different error messages, but without crashes, so far.

Currently, I only see "resultByQuery.data is undefined", but I also saw some similar to them of the other folks here. In my case this is a Graph Panel with a set of 10 InfluxQL queries, where 9 of them are aggregated by a MetaQueries Arithmetic expression. The other query that is not involved in the aggregation does return data as far as I can see in the Query Inspector, but it doesn't end up in the Graph Panel. Even when I disable the aggregation query, the other InfluxQL query is not drawn and I still get the error. I also disabled the 9 source queries before, to only show the result in the panel, which was a pretty neat property/feature of the plugin and I hope this will be kept this way.

@fe111x
Copy link

fe111x commented Sep 17, 2020

Hi,

same Problem for me with Grafana 7.1.5
Would urgently need meta-queries again.

@nadanasser
Copy link

same here on Grafana 7.1.5, arithmetic option would sort lot of work with me

@Willshield
Copy link

Hi,
I can't use CloudWatch datasource with meta-queries in Grafana 7.1.5 also.

@fadjar340
Copy link

So do I....

@arteck
Copy link

arteck commented Oct 25, 2020

sry.. but with influxDB works not..
after merge both PR's in my repo
grafik

@WafflesMcDuff
Copy link

Still having this problem in Grafana 7.1.5 with InfluxDB data source

@WafflesMcDuff
Copy link

Do we have an ETA on this? We're still waiting to get this functionality back.

@unbalanced
Copy link

Such a shame, many cloudwatch dashboards stoped working. Would love to understand if this is going to get fixed or should i find another solution to run my timeshift graphs on cloudwatch metrics..

@WafflesMcDuff
Copy link

Any news on 7.1.5 compatibility?
Anyone found an alternate plugin to use in the meanwhile? This is killing me on objectives set by my leaders.

@WafflesMcDuff
Copy link

Just noticed that #118 is supposed to fix compatibility with Grafana 7.x.x
I'll report back once we've tested.

@ssakuh
Copy link

ssakuh commented Jan 25, 2021

Hello,

Still broken on 7.1.7.

image

Please let us know if there is an update.

@Gauravshah
Copy link
Member

@ssakuh have you tried latest version from git ?
Latest version is not released on grafana due to signing issues.

@WafflesMcDuff
Copy link

@ssakuh have you tried latest version from git ?
Latest version is not released on grafana due to signing issues.

Do we know when Grafana will certify this release?

@Gauravshah
Copy link
Member

@WafflesMcDuff can you verify the fix so that we can close the issue.

please follow thread here for 0.0.4 release grafana/grafana-plugin-repository#827

@WafflesMcDuff
Copy link

@Gauravshah unfortunately, my metrics team will not install it until Grafana has certified it. I'll see if I can get them to install it in a test environment.

@eloykramar
Copy link

eloykramar commented Jan 28, 2021

Hello, I downloaded and installed the latest version from git (https://github.com/GoshPosh/grafana-meta-queries/archive/0.0.4.tar.gz) but still not work in grafana 7.0.6.

This is my initial metric (mysql datasource)
grafana-meta-query-1

When try add timeshift -> error:
grafana-meta-query-2

When try add arithmetic -> no error, but nothing can be seen:
grafana-meta-query-3
grafana-meta-query-4

Do you see something wrong? Thanks in advance.

@Gauravshah
Copy link
Member

Gauravshah commented Jan 29, 2021 via email

@eloykramar
Copy link

Sorry for my bad, with that it works perfect! Thanks.

@zebardy
Copy link

zebardy commented Feb 3, 2021

Hi, is there any update on when the fix for this will be signed?

Many thanks

@WafflesMcDuff
Copy link

Yes. Our grafana team says they won't implement this until the release is signed by Grafana. @Gauravshah - where do you stand on getting the release signed?

@WafflesMcDuff
Copy link

Yes. Our grafana team says they won't implement this until the release is signed by Grafana. @Gauravshah - where do you stand on getting the release signed?

@ShilpaSivanesan

@Gauravshah
Copy link
Member

Gauravshah commented Feb 4, 2021

closing this issue as grafana 7 compatibility is fixed.
opening a different issue #120 for signing

@matanbaruch
Copy link

image

Still does not work as expected

Grafana v7.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests