How to pass a json from a streaming backend plugin to frontend

Hi, I’m new to the Grafana ecosystem, and I had the necessity to develop a custom streaming plugin for a project of mine.

I was trying to send some JSON data to the front using the *backend.StreamSender.sendJSON method, but I found some problems in receiving the data in a test panel.

I haven’t touched the frontend part yet and I’m still using the default one that comes with the creation of the backend data source. Should I do anything in particular or will I have to create a frame and send that to the frontend in order to visualize data?

This is an example of what I’m currently doing at the backend in order to send the JSON to the frontend.

`jsonData := <-jsonChannelData

err := sender.SendJSON(jsonData)`

Thanks for any advice :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.