Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

reference available variables like data source in custom query #29

Open
joemoe opened this issue Dec 1, 2016 · 3 comments
Open

reference available variables like data source in custom query #29

joemoe opened this issue Dec 1, 2016 · 3 comments

Comments

@joemoe
Copy link

joemoe commented Dec 1, 2016

when we use a custom query it would be useful to have variables like $datasource available.
is this possible?

@alexanderzobnin
Copy link
Contributor

Can you explain? Where do you want to see that variables?

@joemoe
Copy link
Author

joemoe commented Dec 6, 2016

following scenario:

  • i create a graph
  • i chose a crate datasource
  • i toggle the edit mode
  • i get an empty line
  • in this line i'd like to reference things like datasource so instead of writing select * from schema.table i'd like to write select * from $datasource as this is already defined.

does this help you?

@alexanderzobnin
Copy link
Contributor

I understand what you want. I've been confused by variable name $datasource because it used by grafana. We can choose another name like $table or something else.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants