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

Cannot refer the alias with variable #85

Open IzekChen opened 4 years ago

IzekChen commented 4 years ago

I am try to query elasticsearch then using metaqueries to do the timeshift. In grafana you can use variable inside alias https://grafana.com/docs/grafana/latest/features/datasources/elasticsearch/#series-naming-and-alias-patterns

Would it be possible to use variable in the alias, then refer it in the meta query "Metric" column

image

Gauravshah commented 4 years ago

@IzekChen you should be able to refer them as OG and test

IzekChen commented 4 years ago

Is that means I cannot use variable in the metric field? Need to set it up one by one, right?

Gauravshah commented 4 years ago

yup, group bys aren't supported yet. there was some progress https://github.com/GoshPosh/grafana-meta-queries/issues/14 but not completed