|
|
version: '3.9'
|
|
|
|
|
|
volumes:
|
|
|
prometheus_data: {}
|
|
|
grafana_data: {}
|
|
|
logvolume:
|
|
|
driver: local
|
|
|
driver_opts:
|
|
|
type: none
|
|
|
o: bind
|
|
|
device: $PWD/logs
|
|
|
|
|
|
networks:
|
|
|
rhodecode_network:
|
|
|
name: rhodecode_network
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
statsd-exporter:
|
|
|
image: prom/statsd-exporter:v0.22.8
|
|
|
restart: unless-stopped
|
|
|
command: [
|
|
|
'--statsd.mapping-config=/etc/statsd/statsd.yaml',
|
|
|
'--statsd.listen-udp=:9125',
|
|
|
'--web.listen-address=:9102'
|
|
|
]
|
|
|
networks:
|
|
|
- rhodecode_network
|
|
|
ports:
|
|
|
- "127.0.0.1:9125:9125/udp"
|
|
|
- "127.0.0.1:9102:9102"
|
|
|
volumes:
|
|
|
- ./config/statsd-exporter:/etc/statsd
|
|
|
|
|
|
node-exporter:
|
|
|
image: prom/node-exporter:v1.4.0
|
|
|
command:
|
|
|
- "--path.procfs=/host/proc"
|
|
|
- "--path.rootfs=/rootfs"
|
|
|
- "--path.sysfs=/host/sys"
|
|
|
- "--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)"
|
|
|
- "--collector.systemd"
|
|
|
- "--collector.processes"
|
|
|
networks:
|
|
|
- rhodecode_network
|
|
|
pid: host
|
|
|
restart: unless-stopped
|
|
|
ports:
|
|
|
- "127.0.0.1:9100:9100"
|
|
|
volumes:
|
|
|
- "/proc:/host/proc:ro"
|
|
|
- "/sys:/host/sys:ro"
|
|
|
- "/:/rootfs:ro"
|
|
|
|
|
|
prometheus:
|
|
|
image: prom/prometheus:v2.39.1
|
|
|
restart: unless-stopped
|
|
|
command:
|
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
|
- "--storage.tsdb.path=/prometheus"
|
|
|
- "--web.console.libraries=/etc/prometheus/console_libraries"
|
|
|
- "--web.console.templates=/etc/prometheus/consoles"
|
|
|
- "--storage.tsdb.retention.time=24h"
|
|
|
- "--web.enable-lifecycle"
|
|
|
ports:
|
|
|
- "127.0.0.1:9090:9090"
|
|
|
networks:
|
|
|
- rhodecode_network
|
|
|
volumes:
|
|
|
- ./config/prometheus:/etc/prometheus
|
|
|
- prometheus_data:/prometheus
|
|
|
|
|
|
grafana:
|
|
|
image: grafana/grafana:9.2.1-ubuntu
|
|
|
restart: unless-stopped
|
|
|
env_file:
|
|
|
- ./config/grafana/grafana.env
|
|
|
ports:
|
|
|
- "4000:3000"
|
|
|
volumes:
|
|
|
- grafana_data:/var/lib/grafana
|
|
|
networks:
|
|
|
- rhodecode_network
|
|
|
|
|
|
loki:
|
|
|
image: grafana/loki:2.6.1
|
|
|
restart: unless-stopped
|
|
|
ports:
|
|
|
- "127.0.0.1:3100:3100"
|
|
|
- "127.0.0.1:9095:9095"
|
|
|
command: [
|
|
|
"-config.file=/etc/loki/loki-config.yaml"
|
|
|
]
|
|
|
networks:
|
|
|
- rhodecode_network
|
|
|
volumes:
|
|
|
- ./config/loki:/etc/loki
|
|
|
|
|
|
promtail:
|
|
|
image: grafana/promtail:latest
|
|
|
command: [
|
|
|
"-config.file=/etc/promtail/promtail-config.yaml"
|
|
|
]
|
|
|
networks:
|
|
|
- rhodecode_network
|
|
|
volumes:
|
|
|
- /var/log:/var/log
|
|
|
- logvolume:/var/log_volume
|
|
|
- ./config/promtail:/etc/promtail
|
|
|
|