chassis-agent/docker-compose-metrics.yml

62 lines
1.5 KiB
YAML
Raw Normal View History

version: "3"
services:
statsd-agent:
image: statsd/statsd:latest
2023-05-29 16:10:41 +08:00
hostname: "statsd-agent"
container_name: "statsd-agent"
restart: always
ports:
- "8125:8125/udp"
- "8126:8126"
volumes:
- "./metrics/statsd_config.js:/usr/src/app/config.js"
networks:
2023-05-24 18:42:40 +08:00
chassis_agent_metrics:
statsd-exporter:
image: prom/statsd-exporter:latest
hostname: "statsd-exporter"
2023-05-29 16:10:41 +08:00
container_name: "statsd-exporter"
command: "--statsd.mapping-config=/tmp/statsd_mapping.yml"
ports:
- "9102:9102"
- "9125:9125/udp"
volumes:
- "./metrics/statsd_mapping.yml:/tmp/statsd_mapping.yml"
networks:
chassis_agent_metrics:
statsd-prometheus:
image: prom/prometheus:latest
container_name: 'statsd-prometheus'
hostname: 'statsd-prometheus'
restart: always
volumes:
- ./metrics/prometheus_conf/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9193:9090"
networks:
chassis_agent_metrics:
statsd-grafana:
image: grafana/grafana:latest
container_name: 'statsd-grafana'
hostname: 'statsd-grafana'
restart: always
ports:
- "3100:3000"
volumes:
- ./metrics/grafana_conf/provisioning:/etc/grafana/provisioning
# - ./metrics/grafana_conf/dashboards:/var/lib/grafana/dashboards
- ./metrics/grafana_conf/config/grafana.ini:/etc/grafana/grafana.ini
networks:
2023-05-24 18:42:40 +08:00
chassis_agent_metrics:
networks:
2023-05-24 18:42:40 +08:00
chassis_agent_metrics:
driver: bridge