##// END OF EJS Templates
stack: added grafana/promethues/statsd stack for new RhodeCode Metrics
stack: added grafana/promethues/statsd stack for new RhodeCode Metrics

File last commit:

r14:9dbab126
r14:9dbab126
Show More
docker-compose-grafana.yaml
58 lines | 1.3 KiB | text/x-yaml | YamlLexer
/ docker-compose-grafana.yaml
version: '3.9'
volumes:
prometheus_data: {}
grafana_data: {}
networks:
rhodecode_network:
name: rhodecode_network
services:
statsd-exporter:
image: prom/statsd-exporter:v0.22.8
restart: unless-stopped
command: [
'--statsd.mapping-config=/statsd/statsd.conf',
'--statsd.listen-udp=:9125',
'--web.listen-address=:9102'
]
networks:
- rhodecode_network
ports:
- "9125:9125/udp"
- "9102:9102"
volumes:
- ./config/statsd-exporter/statsd.conf:/statsd/statsd.conf
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:
- "9090:9090"
networks:
- rhodecode_network
volumes:
- ./config/prometheus:/etc/prometheus
- prometheus_data:/prometheus
grafana:
image: grafana/grafana:9.1.8-ubuntu
restart: unless-stopped
env_file:
- ./config/grafana/grafana.env
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
networks:
- rhodecode_network