Load my custom data source plugin in my panel plugin

Hello, I created a datasource plugin and panel plugin separatly. Now I want to load my data source plugin in my panel plugin how can I do that ?

Hi @aaronwilliam172

Your datasource and panel plugins are separate plugins for Grafana. They don’t really correlate to each other and they work interchangeable, as in, any datasource will provide data to your panel and your datasource will provide data to any panel.

To see your datasource data in your panel (or from any other datasource for that matter) you can do as you do with any other datasource and panel in Grafana: Go to a dashboard, add a panel, select your datasource, then on the right side, select your panel in the list of visualizations (or any other datasource)

Maybe what you are asking (I’m speculating here) is if you can, from your panel, load your datasource, the short answer is no. Panels don’t request data, they only receive it and they are normally datasource agnostic. Is the user who selects which datasource to use in a panel.