diff --git a/services/monitoring/docker-compose.yml.j2 b/services/monitoring/docker-compose.yml.j2 index 3c350fb0..57afb6cf 100644 --- a/services/monitoring/docker-compose.yml.j2 +++ b/services/monitoring/docker-compose.yml.j2 @@ -301,7 +301,7 @@ services: - prometheus-port=9400 pgsql-query-exporter: - image: ghcr.io/albertodonato/query-exporter:sha-a1d908e + image: ghcr.io/albertodonato/query-exporter:sha-685d8ed volumes: [] dns: - 8.8.8.8 @@ -311,6 +311,9 @@ services: networks: - monitored - public + environment: + - POSTGRES_HOST=${POSTGRES_HOST} + - POSTGRES_PORT=${POSTGRES_PORT} extra_hosts: [] deploy: labels: @@ -326,6 +329,13 @@ services: reservations: memory: 64M cpus: "0.1" + healthcheck: + test: ["CMD", "bash", "-c", "timeout 3 bash -c '