chore(config): Unify deployment orchestration and monitoring integration
This commit is contained in:
@@ -174,6 +174,56 @@ services:
|
||||
networks:
|
||||
- ha-network
|
||||
|
||||
mysqld-exporter:
|
||||
image: prom/mysqld-exporter:v0.16.0
|
||||
container_name: mysqld-exporter
|
||||
restart: always
|
||||
ports:
|
||||
- "9104:9104"
|
||||
environment:
|
||||
- MYSQLD_EXPORTER_PASSWORD=${MYSQL_ROOT_PASSWORD:-root123456}
|
||||
command:
|
||||
- --mysqld.address=mysql:3306
|
||||
- --mysqld.username=root
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- ha-network
|
||||
|
||||
redis-exporter:
|
||||
image: oliver006/redis_exporter:v1.62.0
|
||||
container_name: redis-exporter
|
||||
restart: always
|
||||
ports:
|
||||
- "9121:9121"
|
||||
environment:
|
||||
- REDIS_ADDR=redis://redis:6379
|
||||
- REDIS_PASSWORD=${REDIS_PASSWORD:-redis_HA_Cluster_2024}
|
||||
depends_on:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- ha-network
|
||||
|
||||
node-exporter:
|
||||
image: prom/node-exporter:v1.8.2
|
||||
container_name: node-exporter
|
||||
restart: always
|
||||
ports:
|
||||
- "9100:9100"
|
||||
command:
|
||||
- --path.procfs=/host/proc
|
||||
- --path.sysfs=/host/sys
|
||||
- --path.rootfs=/rootfs
|
||||
- --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($|/)
|
||||
volumes:
|
||||
- /proc:/host/proc:ro
|
||||
- /sys:/host/sys:ro
|
||||
- /:/rootfs:ro
|
||||
networks:
|
||||
- ha-network
|
||||
|
||||
networks:
|
||||
ha-network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user