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

Question, which function do work? and which data sources are supported? #66

Open DaveEzrakhovich opened 4 years ago

DaveEzrakhovich commented 4 years ago

Hi there We've deployed the plugin on our grafana environment and so far for all tests we've preformed we didn't get any result

Maybe it's important to note we've tested it against Prometheus and mainly arithmetic function (such as A-B and other complex stuff)

Gauravshah commented 4 years ago

Can you send a screenshot of you panel ? In theory it is independent of data source so should work.

On Thu, 15 Aug 2019 at 10:30 AM, DaveTaboola notifications@github.com wrote:

Hi there We've deployed the plugin on our grafana environment and so far for all tests we've preformed we didn't get any result

Maybe it's important to note we've tested it against Prometheus and mainly arithmetic function (such as A-B and other complex stuff)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoshPosh/grafana-meta-queries/issues/66?email_source=notifications&email_token=AAEXQD5TFQ56GA4O3OCYWCTQETPGNA5CNFSM4IL3DDMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFLM2TA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEXQD6GKQFQ72ATWFXFHQ3QETPGNANCNFSM4IL3DDMA .

DaveEzrakhovich commented 4 years ago

You can see that it's created in the legend but theres no actual metric (or line) Screen Shot 2019-08-15 at 10 45 54

Gauravshah commented 4 years ago

your panel data source needs to be Metaqueries instead of mixed

DaveEzrakhovich commented 4 years ago

Thanks @Gauravshah I'll try to open a pull request, to make the README more clear (4 people in my company worked on making it work, and we missed that part, hope its not offending in anyway)

Gauravshah commented 4 years ago

Please go ahead

Gauravshah commented 4 years ago

@DaveTaboola feel free to reach out if you need any help with PR. Keeping the issue open until you raise a PR

ashish235 commented 4 years ago

Does it work with ElasticSearch as data source. Seems not working. Screenshot 2019-11-14 at 12 46 37 PM

Gauravshah commented 4 years ago

@ashish235 it would be A['something'] and B['something']

beingyash commented 4 years ago

@Gauravshah Timeshift and Arithmetic works perfectly with elasticsearch datasource but not with prometheus. Grafana version: 6.5.0 Prometheus version: 2.15.2 Metaqueries version: 0.0.3 It shows an error in the panel, stating: "Cannot read property 'forEach' of undefined"

grafana

Gauravshah commented 4 years ago

@beingyash this issue is different from what you are asking. please move the discussion to https://github.com/GoshPosh/grafana-meta-queries/issues/94