-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fixed Timeshift and Moving Average on 0.0.5 #128
Conversation
@ShilpaSivanesan had we not fixed this as part of previous PR ? |
Yes I added this at @drsoares added this specifically for timeshift. |
Those two parts were missing and not working for OpenTSDB at least. Inside timeshift and movingaverage methods, please double check. I'm assuming that 118 is already released on 0.0.5 version. |
Some other datasources are experiencing the same problem. |
I can confirm that this fix works in my case for elastic search. I just applied the fix in Chrome Dev tools. Please merge this PR. |
@drsoares can you help me understand why does this fix things ? grafana-meta-queries/src/datasource.js Line 89 in c9042c9
|
Not working on grafana 7.4.5 with influxdb |
@drsoares Can you please help @Gauravshah understand what is the problem so our graphs can start working again. |
I started using autohome-comparequeries after waiting so long |
Apologies for the long absence. @earth08 do you mean this change or the plugin before the change? @Gauravshah I think the best explanation is trying to reproduce the error with the mentioned datasources. (influx, opentsdb and elasticsearch) I wonder if there's any in which this plugin is working, not sure if there are any behavioural diferences bettween the query datasources from different plugins, the contract is the same and never returns a promise, it results an observable. I've just let that if statement to make it consistent with the remaining plugin. |
@drsoares |
@earth08 but have you tried with this patch? Without these changes only arithmetic was working for me as well. |
@drsoares which patch, |
I confirm this fix perfectly works with grafana 7.5.2 and metaqueries 0.0.5 (tested with timeshift) |
Since @Gauravshah seems reluctant to merge this fix, can we create a fork or use a branch or something. Many graphs in our company is broken due to this bug. It has soon been two months since this bug was reported. |
Can also confirm that manually applying the change in this PR and restarting grafana got timeshift to work again (grafana 7.5.5) |
How to apply and what change are u talking about? |
I just applied the changes detailed here: https://github.com/GoshPosh/grafana-meta-queries/pull/128/files
|
Any updates on this? This plugin is really useful, but there is no way to manually update a plugin at Grafana Cloud and this is supposed to be the only plugin available that is supposed to allow to do time shifts |
@drsoares could you please pull the latest master and update this PR |
Fixed here #141 |
I still don't understand why this issue is closed.
When I apply the patch stated above in datasource.js
with
on lines 301 & 232 Unless I'm missing something, #141 does not fix that point. |
Issue fix, #122. Inside TimeShift functions and MovingAverage there were some results not wrapped into promises leading into the following issues:
Datasource: OpenTSDB