grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
141 stars 21 forks source link

RuntimeDataSources: Support runtime data sources retrieval via DataSourceSrv #921

Open torkelo opened 1 month ago

torkelo commented 1 month ago

The runtime service DataSourceSrv (getDataSourceSrv) does currently not know about the scenes registered runtime data sources.

This has not been an issue for most panels as far as we know but it appears that LogsPanel does do a data source lookup via DataSourceSrv. https://github.com/grafana/grafana/blob/main/public/app/plugins/panel/logs/LogsPanel.tsx#L109

So we might need to export runtimeDataSources from scenes so that DataSourceSrv can access and return runtime data sources