oliver006/redis_exporter

Support for docker secrets

Open

#544 opened on Sep 6, 2021

View on GitHub
 (13 comments) (0 reactions) (1 assignee)Go (944 forks)github user discovery
help wantedquestion

Repository metrics

Stars
 (3,637 stars)
PR merge metrics
 (PR metrics pending)

Description

It would be nice if redis_exporter would support docker secrets for configuration variables.

E.g. the postgres container allows to specify docker secrets with "__FILE" appended to the environment variable.

E.g. POSTGRES_USER=dbuser could be specified as "POSTGRES_USER_FILE=/run/secrets/postgres_user". In the latter case, the POSTGRES_USER variable is extracted from the file /run/secrets/postgres_user.

See also the Docker Secrets section in https://hub.docker.com/_/postgres

Contributor guide