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
285 stars 71 forks source link

Metaqueries doesn't work on Grafana v8.1.2 #138

Open iamelec opened 2 years ago

iamelec commented 2 years ago

I'm currently experiencing an issue where Metaqueries doesn't seem to work on Grafana v8.1.2. First of all I've allowed the plugin to work by allowing unsigned plugins to work. I get the following error on my query: "Cannot read properties of undefined (reading 'forEach')''

My query is as following: Data source = MetaQueries First query = MySQL query with datetime and value data. Second query = Metaqueries with time shift applied and refers to first query.

I'm trying to use a timeseries graph. Arithmetic seems to be doing something (the metaquery shows up in the legend), but I'd like to be able to use timeshift test .

transistorgit commented 2 years ago

same here, doesn't work on 8.1.2. Wanted to use arithmethics that worked on older versions. grafik

ReasonDuan commented 2 years ago

Is there any update?

giom-l commented 2 years ago

Hi,

You may give a try to the solution explained here : https://github.com/GoshPosh/grafana-meta-queries/pull/128

I have this file update in my stack since I updated to grafana v7.5.2 few months ago. And everything is working fine.

diakbar commented 2 years ago

try allow add unsigned plugins on grafana config


[plugins]
allow_loading_unsigned_plugins = grafana-meta-queries
asaf400 commented 1 year ago

https://github.com/GoshPosh/grafana-meta-queries/issues/155