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

doesn't work with prometheus data source #94

Open Gauravshah opened 4 years ago

Gauravshah commented 4 years ago

Details in : https://github.com/GoshPosh/grafana-meta-queries/issues/82 https://github.com/GoshPosh/grafana-meta-queries/issues/66

beingyash commented 4 years ago

@Gauravshah Any progress on prometheus compatibility yet?? https://github.com/GoshPosh/grafana-meta-queries/issues/66#issuecomment-595746814

yuvarajhere commented 4 years ago

@beingyash Grafana 7.0 introduced transformation feature to aggregate multiple query outputs - https://grafana.com/docs/grafana/latest/guides/whats-new-in-v7-0/#transformations

Gauravshah commented 4 years ago

@beingyash is there any open prometheus data source that I can use to test it out ?

siegmund42 commented 4 years ago

See my comment here for a test data source: https://github.com/GoshPosh/grafana-meta-queries/issues/82#issuecomment-566455244

Gauravshah commented 4 years ago

I looked at it . For some reason Prometheus returns an observable from the promise. Its related to move to react from angular. because $q.all(promise) doesn't resolve on react. We will need to move the plugin from angular to react to be able to support this. Not sure of a quick hack. https://stackoverflow.com/questions/37172093/q-all-for-angular2-observables

Unable to import rxjs