Hi Grafana team,
I want to build a custom backend data source plugin with streaming capability.
So far im not able to find any example for my use case and grafana documentation link not showing anything https://grafana.com/tutorials/build-a-streaming-data-source-plugin/
i would be really appreciated if someone points me to correct resource.
hi. The link seems to had changed. Here’s the correct link Build a streaming data source plugin | Grafana documentation
Its seem this documentation for frontend streaming data source. i wants to build backend data source with streaming capability
More Precisely, I want to return stream of data from backend component.
Hi there,
We have a repository for plugin examples, but unfortunately have not yet gotten around to adding a backend streaming plugin. We have a GitHub issue to keep track of this.
There are a few Grafana made plugins that implement backend streaming however:
- https://github.com/grafana/grafana-iot-twinmaker-app/blob/21529844ae3bc8b85f5e24d462d963da25ca26e5/pkg/plugin/datasource.go#L256
- https://github.com/grafana/mqtt-datasource/blob/b9092a8b083cfcdd382e51fc29a446d5162b998c/pkg/plugin/stream.go#L15
Perhaps these can serve as a helpful reference. Do let us know if that helps you get started!
I was just looking into this for my own sake, and Grafana’s documentation is quite lacking. With a bit of luck I got a streaming example working using the deprecated example at: GitHub - grafana/grafana-starter-datasource-backend: A starter for Grafana data source plugins with a backend along with the WebArchive version of your link: Build a streaming data source backend plugin | Grafana Labs
Supposedly the repository is deprecated, but it works for me and my backend plugin is for personal use anyways so I’m not worried about the API changing. Maybe wouldn’t recommend this if you were going to try and publish the plugin… Hope this helps!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.