Chore: Add username option for redis remote cache (#101787)

* Chore: Add username option for redis remote cache

(cherry picked from commit 25e28dc85e)

* Chore: Update docs and config with sample Redis conn with user+pass

---------

Co-authored-by: Thomas Fournier <tfournier@evolves.fr>
This commit is contained in:
Matheus Macabu
2025-03-12 08:26:41 +01:00
committed by GitHub
co-authored by Thomas Fournier
parent cd7b66e2e8
commit 848d49e70f
5 changed files with 9 additions and 4 deletions
@@ -491,11 +491,13 @@ Leave empty when using `database` and Grafana uses the primary database.
##### `redis`
Example connection string: `addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false`
Example connection string: `addr=127.0.0.1:6379,pool_size=100,db=0,username=grafana,password=grafanaRocks,ssl=false`
- `addr` is the host `:` port of the Redis server.
- `pool_size` (optional) is the number of underlying connections that can be made to Redis.
- `db` (optional) is the number identifier of the Redis database you want to use.
- `username` (optional) is the connection identifier to authenticate the current connection.
- `password` (optional) is the connection secret to authenticate the current connection.
- `ssl` (optional) is if SSL should be used to connect to Redis server. The value may be `true`, `false`, or `insecure`. Setting the value to `insecure` skips verification of the certificate chain and hostname when making the connection.
##### `memcache`