添加 elk

This commit is contained in:
BryantHe
2023-05-24 18:42:40 +08:00
parent 22424e2b81
commit fe7b5bd14f
5 changed files with 91 additions and 5 deletions

View File

@@ -0,0 +1,30 @@
version: "3"
services:
statsd-agent:
image: statsd/statsd:latest
restart: always
ports:
- "8125:8125/udp"
- "8126:8126"
volumes:
- "./statsd_config.js:/usr/src/app/config.js"
networks:
chassis_agent_metrics:
statsd-exporter:
image: prom/statsd-exporter:latest
hostname: "statsd-exporter"
command: "--statsd.mapping-config=/tmp/statsd_mapping.yml"
ports:
- "9102:9102"
- "9125:9125/udp"
volumes:
- "./statsd_mapping.yml:/tmp/statsd_mapping.yml"
networks:
chassis_agent_metrics:
networks:
chassis_agent_metrics:
driver: bridge