Hi, first of all I want to thank the Grafana developers for the great product they are putting out there. I’ve been using Grafana for over a year now and I’m still very happy with it, especially since version 7.
Now to my question:
I am building a panel plugin that acts in a similar way to the default graph plugin but with a slight difference. My users don’t know anything about sql syntax but still want to be able to edit their graphs. So I am trying to make my graph plugin a bit more interactive. It will have a list of all available trends in a specific PostgreSQL table. My users should be able to visualize them on my graph just by clicking on them in my selection menu. The UI is done and works no problem. I have a problem with fetching the data though. I am trying to send queries to the PostgreSQL datasource plugin from within my graph plugin code. I tried my luck with the DataSourceSrv interface but unfortunately I couldn’t achieve the desired result. Is this interface even suitable for my use case? Is there a way to query a datasource from within a panel plugin?
Thanks in advance for any responses!