Commit 407f55f7 by lincyawer

完善开发环境的监控

parent b0efd35c
Showing with 22 additions and 3 deletions
services:
prometheus:
image: prom/prometheus
hostname: prometheus
ports:
- "10001:9090"
networks:
......@@ -55,7 +54,25 @@ services:
- monitoring
command: "--es.uri=http://192.168.1.234:9200"
redis-exporter:
image: quay.io/oliver006/redis_exporter
ports:
- 10005:9121
networks:
- monitoring
command: "--redis.addr=redis://192.168.1.234:6379 --redis.password=icDb29mLy2s"
rabbitmq-exporter:
image: kbudde/rabbitmq-exporter
ports:
- 10006:9419
networks:
- monitoring
configs:
- source: rabbitmq
target: /etc/config.json
command: "-config-file /etc/config.json"
volumes:
prome-data:
name: "prometheus-data"
......@@ -71,6 +88,8 @@ configs:
file: ./mysql/mysql_exporter_234.cnf
mysqld252:
file: ./mysql/mysql_exporter_252.cnf
rabbitmq:
file: ./rabbitmq/rabbitmq.json
networks:
# The presence of these objects is sufficient to define them
......
......@@ -4,7 +4,7 @@
"rabbit_user": "guest",
"rabbit_pass": "guest",
"publish_port": "9419",
"publish_addr": "192.168.1.234",
"publish_addr": "localhost",
"output_format": "TTY",
"enabled_exporters": [
"exchange",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment