grafana / grafana-plugin-examples

189 stars 53 forks source link

Add example how to use adhoc features with React in datasource #216

Closed Slach closed 11 months ago

academo commented 1 year ago

@Slach can you please expand this issue and elaborate what do you mean by adhoc features ?

mckn commented 1 year ago

@Slach are you requesting an example of how you support adhoc template variables in a datasource?

Slach commented 1 year ago

i mean if we have adhoc template variables which have source data from datasource and passthru it back to QueryEditor for example

mckn commented 1 year ago

@Slach super! Do you mind updating the issue with some more details and maybe a written explanation of what you are looking for? It would help us start working on this sooner rather than later.

sunker commented 1 year ago

@Slach we'll look into this as soon as you provide more details.

In the meantime, FWIW, here a link to the adhoc documentation. To add support for adhoc filter in your data source, you need to implement the getTagKeys method in the data source file. This is an example of what it looks like in the prometheus data source.

marefr commented 11 months ago

Sounds like you've got all the information you need @Slach. Closing the issue since it needs more information and hasn't had any activity recently. We can re-open it after you you add more information, if needed.