Skip to content

Commit 884f5ea

Browse files
Fix redis exporter environment (#988)
* Fix redis exporter environment 1. Correct REDIS_ADDR configuration (support secure protocol) 2. Add REDIS_USER (for 6.0 version support) * Fix REDIS_ADDRESS mapping Co-authored-by: Sylvain <[email protected]> --------- Co-authored-by: Sylvain <[email protected]>
1 parent 27ff7aa commit 884f5ea

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

services/monitoring/docker-compose.yml.j2

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,12 @@ services:
377377
networks:
378378
- monitored
379379
environment:
380-
REDIS_ADDR: redis://{{REDIS_HOST}}:{{REDIS_PORT}}
381-
REDIS_EXPORTER_CHECK_KEYS: db0=user_id*client_session_id*alive,db0=user_id*client_session_id*resources,db1=project_lock*,db3=*
380+
REDIS_ADDR: ${REDIS_ADDRESS}
381+
{%- if REDIS_USER %}
382+
REDIS_USER: ${REDIS_USER}
383+
{%- endif %}
382384
REDIS_PASSWORD: ${REDIS_PASSWORD}
385+
REDIS_EXPORTER_CHECK_KEYS: db0=user_id*client_session_id*alive,db0=user_id*client_session_id*resources,db1=project_lock*,db3=*
383386
deploy:
384387
labels:
385388
- prometheus-job=redis-exporter

services/monitoring/template.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ POSTGRES_PORT=${POSTGRES_PORT}
1313
POSTGRES_HOST=${POSTGRES_HOST}
1414
POSTGRES_ENDPOINT=${POSTGRES_ENDPOINT}
1515
PREFIX_STACK_NAME=${PREFIX_STACK_NAME}
16-
REDIS_PORT=${REDIS_PORT}
17-
REDIS_HOST=${REDIS_HOST}
16+
REDIS_USER=${REDIS_USER}
17+
REDIS_ADDRESS=${REDIS_ADDRESS}
1818
REDIS_PASSWORD=${REDIS_PASSWORD}
1919
MONITORING_PROMETHEUS_CEPH_TARGETS='${MONITORING_PROMETHEUS_CEPH_TARGETS}'
2020
MONITORING_PROMETHEUS_PGSQL_GID_MONITORED=${MONITORING_PROMETHEUS_PGSQL_GID_MONITORED}

0 commit comments

Comments
 (0)