diff --git a/docs/sources/setup-grafana/configure-grafana/_index.md b/docs/sources/setup-grafana/configure-grafana/_index.md index d7f0c50cc8a..ad403d30d28 100644 --- a/docs/sources/setup-grafana/configure-grafana/_index.md +++ b/docs/sources/setup-grafana/configure-grafana/_index.md @@ -2536,7 +2536,8 @@ Address string of selected the high availability (HA) Live engine. For Redis, it ```ini [live] ha_engine = redis -ha_engine_address = 127.0.0.1:6379 +ha_engine_address: redis-headless.grafana.svc.cluster.local:6379 +ha_engine_password: $__file{/your/redis/password/secret/mount} ```
diff --git a/docs/sources/setup-grafana/set-up-grafana-live.md b/docs/sources/setup-grafana/set-up-grafana-live.md index b2d1c605384..fc39dbff899 100644 --- a/docs/sources/setup-grafana/set-up-grafana-live.md +++ b/docs/sources/setup-grafana/set-up-grafana-live.md @@ -223,26 +223,14 @@ After running: - Streaming from Telegraf delivers messages to all subscribers. - A separate unidirectional stream between Grafana and backend data source opens on different Grafana servers. Publishing data to a channel delivers messages to instance subscribers, as a result, publications from different instances on different machines do not produce duplicate data on panels. -At the moment we only support single Redis node. - -> **Note:** It's possible to use Redis Sentinel and Haproxy to achieve a highly available Redis setup. Redis nodes should be managed by [Redis Sentinel](https://redis.io/topics/sentinel) to achieve automatic failover. Haproxy configuration example: -> -> ``` -> listen redis -> server redis-01 127.0.0.1:6380 check port 6380 check inter 2s weight 1 inter 2s downinter 5s rise 10 fall 2 on-marked-down shutdown-sessions on-marked-up shutdown-backup-sessions -> server redis-02 127.0.0.1:6381 check port 6381 check inter 2s weight 1 inter 2s downinter 5s rise 10 fall 2 backup -> bind *:6379 -> mode tcp -> option tcpka -> option tcplog -> option tcp-check -> tcp-check send PING\r\n -> tcp-check expect string +PONG -> tcp-check send info\ replication\r\n -> tcp-check expect string role:master -> tcp-check send QUIT\r\n -> tcp-check expect string +OK -> balance roundrobin -> ``` -> -> Next, point Grafana Live to Haproxy address:port. +{{< admonition type="note" >}} +Live currently does not support Redis Sentinel. We recommend using a Redis Cluster for high-availability via a k8s helm chart such as the Bitnami Redis chart which has values to provision a Redis Cluster. Grafana Live can then be pointed to the `redis-headless` service. + +``` + live: + ha_engine: redis + ha_engine_address: redis-headless.grafana.svc.cluster.local:6379 + ha_engine_password: $__file{/your/redis/password/secret/mount} +``` + +{{< /admonition >}}