Any help with grafana live setup?

This sites docs are an abomination. Ive been using grafana for over 2 years. It amazes me how bad your support is. I have dashboards more complex then 90% of users. STILL cannot get the Grafana live api working.

On top of that, the goliath websocket plugin is crashing with errors, and does not appear to be working anymore, nor supported on git.

I want help so bad, i want to explain my problem, but i dont even kno where to start. Ive been through literally days of trouble shooting. WHY is it so hard to describe or document a process for sending data over a socket connection?

Are you referring to this Golioth websocket plugin? It’s made by Golioth (not Grafana Labs), so their forum might be a better place to ask.

Can you explain what you are trying to achieve, what you have tried, what error message(s) you have received, etc.

Live api is experimental, afaik
I use it not via WS, but plain HTTP post request on JS-side like this: "
const grafana_live_url = http://mapgl-app:${grafana_api_port}/api/live/push/mystream
const influxData = upd_metric locName="${el}",a_locName="${el}",metric="${rnd}",level="${level}",msg="test msg ${rnd}",ack="${i % 2 === 0}";

    try {
        const response = await axios.post(grafana_live_url, influxData, {
            headers: {
                'Authorization': `Bearer ${grafana_service_token}`,
                'Content-Type': 'text/plain',
            },
        });"

Here’s a demo of Live stream messages that i get from it: play.mapgl.org (“try live updates” button)

channels are ephemeral , they appear as Grafana native datasource under query type ‘live measurements’ as soon as you send messages to live api at its handlers (could be any channel name as ‘mystream’ above in the url)

Hi, appreciate your response and patience. I was quite frustrated last night. Tried to tackle this issue before, without success. 2nd attempt was no more fruitful. LLM are a blessing and a curse, my blood was full boiling last night. I use pro claude, gpt and gemeni and none can seem to handle the entire process.

I am simply trying to send/connect my socket to Grafana. As far as I understand, Grafana has a built in exposed URL, which acts as a live message sub/pub.

I am using latest, v11.
I have ‘enabled’ Grafana Live. (there is no enabled in config, but im getting the console WS request at browser load, which to me confirms Live is enabled)

Ive connected to endpoints like this:

`        async with websockets.connect(
            'wss://**.fur*.com/api/live/ws', 
            additional_headers={  
                'Authorization': 'Bearer glsa_aCI***************_3c1f324d',
            }`

Logs, from docker-compose show connection from Service Account User, Auth success, but return server -1 error, or 3501…

WebSocket connection established.
Sending: {"channel": "ds/mydata/temperature", "data": {"streams": [{"labels": "{__name__=\"my_temp\", instance=\"sensor1\"}", "values": [["1741009490746", "88"]]}]}}
Sending: {"channel": "ds/mydata/temperature", "data": {"streams": [{"labels": "{__name__=\"my_temp\", instance=\"sensor1\"}", "values": [["1741009491747", "41"]]}]}}
Connection closed: received 3501 (registered) bad request; then sent 3501 (registered) bad request
(venv) root@ubuntu-s-2vcpu-8gb-amd-nyc2-01:~# 

Im behind Nginx, but i think auth success shows this to not be the issue. As far as LLMs say, 3501 is a channel issue. Cannot resolve channel.

I dont kno what the endpoint is, i dont kno if i need a custom backend to define that channel, or if i can just push to a pre-built existing one.

As the user said below, I have the Grafana test data enabled, I have live measurement sample/dummy data being sent correctly. I assumed this is where i would ‘pick up’ my channel being pushed from websocket? I have yet to see anything published.

Aside, I once had the goliath plugin working, a year ago, but with many errors. Now, since i could not solve this Live issue, i reverted to Goliath, and have since discovered more issues. Could not get it working. Logs say it is connecting, but also crashing. Thank you for the Forum Link, it appears they are still supporting. Maybe i will give that another test.

I would love to just use Live. Thanks for listening.

logger=id-service t=2025-03-03T14:25:42.46606392Z level=debug msg="Cached token found" id=service-account:15
logger=context userId=15 orgId=1 uname=***s**1 t=2025-03-03T14:25:42.466356215Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.18.0.1 time_ms=7 duration=7.196439ms size=0 referer= handler=/api/live/ws status_source=server

hey, thanks for reply. Your dashboard are very nice, and halfway complex as well. I love it. I ended up getting sorted with Goliath Socket Plugin. THx again.

IM ALSO ADDING, IF YOUR EVER DOING TESTING WITH PANELS, DO NOT USE -HOME PAGE-. This dashboard does not appear to operate in the same fashion as a custom created one. Though i have many panels on my Homepage, i have often ran into issues, that were immediately solved by not testing on HOME PAGE.