32 lines
809 B
YAML
32 lines
809 B
YAML
|
services:
|
||
|
# Metrics collector
|
||
|
prometheus:
|
||
|
image: prom/prometheus:latest
|
||
|
expose:
|
||
|
- 9090
|
||
|
volumes:
|
||
|
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
|
||
|
# persist data
|
||
|
- prometheus_storage:/prometheus
|
||
|
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
|
||
|
|
||
|
# log viewer
|
||
|
grafana:
|
||
|
image: grafana/grafana:latest
|
||
|
volumes:
|
||
|
- ./grafana.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
|
||
|
- grafana_storage:/var/lib/grafana
|
||
|
environment:
|
||
|
- GF_AUTH_ANONYMOUS_ENABLED=true
|
||
|
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
||
|
- GF_AUTH_DISABLE_LOGIN_FORM=true
|
||
|
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
|
||
|
ports:
|
||
|
- 3000:3000
|
||
|
depends_on:
|
||
|
- prometheus
|
||
|
|
||
|
volumes:
|
||
|
prometheus_storage:
|
||
|
grafana_storage:
|