Commit 407f55f7 by lincyawer

完善开发环境的监控

parent b0efd35c
Showing with 21 additions and 2 deletions
services: services:
prometheus: prometheus:
image: prom/prometheus image: prom/prometheus
hostname: prometheus
ports: ports:
- "10001:9090" - "10001:9090"
networks: networks:
...@@ -55,6 +54,24 @@ services: ...@@ -55,6 +54,24 @@ services:
- monitoring - monitoring
command: "--es.uri=http://192.168.1.234:9200" 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: volumes:
prome-data: prome-data:
...@@ -71,6 +88,8 @@ configs: ...@@ -71,6 +88,8 @@ configs:
file: ./mysql/mysql_exporter_234.cnf file: ./mysql/mysql_exporter_234.cnf
mysqld252: mysqld252:
file: ./mysql/mysql_exporter_252.cnf file: ./mysql/mysql_exporter_252.cnf
rabbitmq:
file: ./rabbitmq/rabbitmq.json
networks: networks:
# The presence of these objects is sufficient to define them # The presence of these objects is sufficient to define them
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"rabbit_user": "guest", "rabbit_user": "guest",
"rabbit_pass": "guest", "rabbit_pass": "guest",
"publish_port": "9419", "publish_port": "9419",
"publish_addr": "192.168.1.234", "publish_addr": "localhost",
"output_format": "TTY", "output_format": "TTY",
"enabled_exporters": [ "enabled_exporters": [
"exchange", "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