oliver006 / redis_exporter

Prometheus Exporter for ValKey & Redis Metrics. Supports ValKey and Redis 2.x, 3.x, 4.x, 5.x, 6.x, and 7.x

Home Page:https://github.com/oliver006/redis_exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To connect to Redis with a password containing special characters such as '@&$'

DongEHome opened this issue · comments

./redis_exporter -redis.addr redis://XXXX:XXX -redis.password '@LG3$jUfB' -redis.user XXXX --debug

DEBU[0005] connectToRedis( redis://XXXX:XXX ) err: dial redis: unknown network redis
DEBU[0005] scrapeRedisHost() done
DEBU[0005] Trying DialURL(): redis://XXXX:XXX
DEBU[0005] DialURL() failed, err: ERR wrong number of arguments for 'auth' command
DEBU[0005] Trying: Dial(): redis XXXX:XXX
ERRO[0005] Couldn't connect to redis instance (redis://XXXX:XXX )
DEBU[0005] connectToRedis( redis://XXXX:XXX ) err: dial redis: unknown network redis
DEBU[0005] scrapeRedisHost() done