I would like to develop a streaming datasource fro grafana analogous to the telegraf “Stream using WebSocket endpoint” mentioned here: Stream metrics from Telegraf to Grafana.
If I understand well, this could be an independent websocket client (or websocket server?), for example written in python or node.js and running as an independent process (for data acquisition).
From the configuration information for telegraf I infer that the websocket client would connect to
url = “ws://localhost:3000/api/live/push/custom_stream_id”
where “custom_stream_id” could be any identifier.
Also it seems that an authorization in the websocket header is needed:
Authorization = "Bearer "
as well as the
data_format = “influx”
which is well documented at the telegraf site.
Nevertheless, I did not find de grafana documentation that explains in more detail, what such an independent websocket client (or websocket server) has to take into account to connect to grafana in an similar way the WebSocket output plugin of Telegraf does.
I would be very grateful if somebody could help me out with this.
Thank you very much, Olivier Rickmers