Grafana 8.0.6 websocket 400

  • What Grafana version and what operating system are you using?
    Grafana 8.0.6, deployed via Kubernetes via the official Helm chart

  • What are you trying to achieve?
    Trying to make websockets work.

  • What did you expect to happen?
    Websockets to work.

  • Can you copy/paste the configuration(s) that you are having problems with?

image:
  repository: grafana/grafana
  tag: 8.0.6
  pullPolicy: IfNotPresent

replicas: 1
podDisruptionBudget:
  minAvailable: 1

autoscaling:
  enabled: true
  minReplicas: 1
  maxReplicas: 10
  metrics:
  - type: Resource
    resource:
      name: cpu
      targetAverageUtilization: 60

namespaceOverride: monitoring

rbac:
  create: true
  pspEnabled: false
serviceAccount:
  create: true

ingress:
  enabled: true
  hosts: [ "subdomain.domain.tld", "subdomain.domain.tld_1" ]
  annotations:
    kubernetes.io/ingress.class: "nginx-internal"
    nginx.org/websocket-services: "grafana"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"


resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 100m
    memory: 128Mi

imageRenderer:
  enabled: true

grafana.ini:
  server:
    domain: subdomain.domain.tld
    root_url: "%(protocol)ss://%(domain)s/"
  live:
    allowed_origins: *
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    wss://subdomain.domain.tld/api/live/ws → status 400
disconnected: connection closed true [centrifuge.js:2899:13](webpack:///node_modules/centrifuge/dist/centrifuge.js)
Status connecting -> disconnected [centrifuge.js:2899:13](webpack:///node_modules/centrifuge/dist/centrifuge.js)
reconnect after 1281 milliseconds [centrifuge.js:2899:13](webpack:///node_modules/centrifuge/dist/centrifuge.js)
start connecting [centrifuge.js:2899:13](webpack:///node_modules/centrifuge/dist/centrifuge.js)
Status disconnected -> connecting

Hello everyone.
I’m trying to make websockets work with Grafana, but the request always fails with 400. I tried allowing all domains as there are several bug tickets open, but still no success. In the Grafana logs I see

t=2021-07-23T07:22:52+0000 lvl=info msg="Request Completed" logger=context userId=95 orgId=1 uname=<user> method=GET path=/api/live/ws status=400 remote_addr=<IP> time_ms=10 size=12 referer=

Does anyone have any ideas?

Did you ever figure this out?