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

No output for Arithmetic and exception for TimeShift and MovingAverage #54

Closed victr closed 5 years ago

victr commented 5 years ago

Hi I've tried with the same settings as shown in the readme, but it doesn't work. For Arithmetic there's no line on the graph image And for TimeShift and MovingAverage it fails with an exception:

Panel data error: TypeError: Cannot set property 'hide' of undefined
    at timeshift (datasource.js:229)
    at eval (datasource.js:105)
    at qt (lodash.js:516)
    at Function.Wa (lodash.js:9343)
    at MetaQueriesDatasource._doQuery (datasource.js:96)
    at eval (datasource.js:52)
    at lodash.js:4911
    at Vr (lodash.js:2996)
    at lodash.js:4880
    at Function.Wa (lodash.js:9343)
Gauravshah commented 5 years ago

your panel data source needs to be grafana, you have set it as Mixed

Screen Shot 2019-05-07 at 9 37 52 AM
victr commented 5 years ago

Grafana ds equals random test data, at least with my grafana configuration. Afaiu mixed is the only way to combine two different datasources, and meta queries is a datasource. image

Gauravshah commented 5 years ago

@victr can you try setting data source as "Meta queries" instead of "Grafana"

victr commented 5 years ago

I've moved on to a different plugin, but thanks for your help.

Gauravshah commented 5 years ago

@victr curious, what other plugin supports multiple metrics ?

victr commented 5 years ago

@Gauravshah mine does :) but no sliding window yet https://github.com/liquidm/grafana-mixtransform/

Gauravshah commented 5 years ago

cool, arithmetic does support what you are trying to rewrite