grafana-aws-athena-datasource icon indicating copy to clipboard operation
grafana-aws-athena-datasource copied to clipboard

Grafana Variables don't work

Open amirfvelis opened this issue 4 years ago • 4 comments

I tried every possible way, seems like i can't get any data from Athena using Grafana variables. see attached https://i.ibb.co/17gNjnb/Screenshot-from-2021-06-15-14-30-07.png

No value is appearing using queries: select id from table group by 1 select 1

only All or None

Any Ideas? Thanks for the help.

amirfvelis avatar Jun 15 '21 11:06 amirfvelis

If you have a variable as 'key' did you try providing $key in the query ? I was able to work with that.

SayaliPat avatar Aug 02 '21 21:08 SayaliPat

@amirfvelis for what it's worth, I have added support for Dashboard Variables in my fork: https://github.com/robert-schmidtke/grafana-aws-athena-datasource

As long as your query returns a single column, you should be good.

image

robert-schmidtke avatar Sep 09 '21 19:09 robert-schmidtke

@robert-schmidtke would be really great to have that here. Have you considered making a PR with that modification?

djesionek avatar Sep 29 '21 11:09 djesionek

@robert-schmidtke would be really great to have that here. Have you considered making a PR with that modification?

Yeah I have, but I won't have the time to maintain the PR, as I don't think it meets the author's coding standards. I also have reason to believe that Grafana Labs will release an official plugin themselves, as I have reached out to them about it, and they said it was on their roadmap.

robert-schmidtke avatar Oct 04 '21 18:10 robert-schmidtke