Features: 1) Add profiles: ["monitoring"] to multiple exporters in docker-compose.yml; 2) Include health check dependency for database service in docker-compose.yml.
Fixes: n/a; Extra: n/a;
This commit is contained in:
parent
ae1d16edda
commit
7a3151e2a1
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ services:
|
||||||
container_name: postgres_exporter
|
container_name: postgres_exporter
|
||||||
image: quay.io/prometheuscommunity/postgres-exporter:v0.17.0
|
image: quay.io/prometheuscommunity/postgres-exporter:v0.17.0
|
||||||
restart: always
|
restart: always
|
||||||
|
profiles: ["monitoring"]
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -76,6 +77,7 @@ services:
|
||||||
container_name: redis_exporter
|
container_name: redis_exporter
|
||||||
image: oliver006/redis_exporter:v1.73.0
|
image: oliver006/redis_exporter:v1.73.0
|
||||||
restart: always
|
restart: always
|
||||||
|
profiles: ["monitoring"]
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -111,6 +113,7 @@ services:
|
||||||
container_name: elasticsearch_exporter
|
container_name: elasticsearch_exporter
|
||||||
image: quay.io/prometheuscommunity/elasticsearch-exporter:v1.9.0
|
image: quay.io/prometheuscommunity/elasticsearch-exporter:v1.9.0
|
||||||
restart: always
|
restart: always
|
||||||
|
profiles: ["monitoring"]
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
command:
|
command:
|
||||||
|
|
@ -194,6 +197,8 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue