2019-05-22 21:23:23 +00:00
|
|
|
version: '3.5'
|
|
|
|
services:
|
|
|
|
prometheus:
|
|
|
|
container_name: prometheus
|
2019-10-16 09:39:00 +00:00
|
|
|
image: prom/prometheus:v2.13.0
|
2019-05-22 21:23:23 +00:00
|
|
|
depends_on:
|
|
|
|
- "vminsert"
|
|
|
|
- "vmselect"
|
|
|
|
ports:
|
|
|
|
- 9090:9090
|
|
|
|
volumes:
|
|
|
|
- promdata:/prometheus
|
|
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
command:
|
|
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
|
|
- '--storage.tsdb.path=/prometheus'
|
|
|
|
restart: always
|
2019-11-07 10:09:27 +00:00
|
|
|
|
|
|
|
grafana:
|
|
|
|
container_name: grafana
|
|
|
|
image: grafana/grafana:6.4.3
|
|
|
|
entrypoint: >
|
|
|
|
/bin/sh -c "
|
|
|
|
cd /var/lib/grafana &&
|
|
|
|
mkdir -p dashboards &&
|
|
|
|
sed 's/$${DS_PROMETHEUS}/Prometheus/g' vm.json > dashboards/vm.json &&
|
|
|
|
/run.sh"
|
|
|
|
depends_on:
|
|
|
|
- "prometheus"
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- grafanadata:/var/lib/grafana
|
|
|
|
- ./provisioning/:/etc/grafana/provisioning/
|
|
|
|
- ./provisioning/dashboards/:/var/lib/grafana/dashboards
|
|
|
|
- ./../../dashboards/victoriametrics.json:/var/lib/grafana/vm.json
|
|
|
|
|
2019-05-22 21:23:23 +00:00
|
|
|
vmstorage:
|
|
|
|
container_name: vmstorage
|
2019-11-05 16:08:50 +00:00
|
|
|
image: victoriametrics/vmstorage:v1.28.3-cluster
|
2019-05-22 21:23:23 +00:00
|
|
|
ports:
|
2019-11-07 10:09:27 +00:00
|
|
|
- 8482
|
|
|
|
- 8400
|
|
|
|
- 8401
|
2019-05-22 21:23:23 +00:00
|
|
|
volumes:
|
|
|
|
- strgdata:/storage
|
|
|
|
command:
|
|
|
|
- '--storageDataPath=/storage'
|
|
|
|
restart: always
|
2019-11-07 10:09:27 +00:00
|
|
|
|
2019-07-19 22:20:04 +00:00
|
|
|
vminsert:
|
|
|
|
container_name: vminsert
|
2019-11-05 16:08:50 +00:00
|
|
|
image: victoriametrics/vminsert:v1.28.3-cluster
|
2019-05-22 21:23:23 +00:00
|
|
|
depends_on:
|
|
|
|
- "vmstorage"
|
|
|
|
command:
|
|
|
|
- '--storageNode=vmstorage:8400'
|
2019-07-19 22:20:04 +00:00
|
|
|
ports:
|
2019-11-07 10:09:27 +00:00
|
|
|
- 8480
|
2019-05-22 21:23:23 +00:00
|
|
|
restart: always
|
2019-11-07 10:09:27 +00:00
|
|
|
|
2019-07-19 22:20:04 +00:00
|
|
|
vmselect:
|
|
|
|
container_name: vmselect
|
2019-11-05 16:08:50 +00:00
|
|
|
image: victoriametrics/vmselect:v1.28.3-cluster
|
2019-05-22 21:23:23 +00:00
|
|
|
depends_on:
|
2019-07-19 22:20:04 +00:00
|
|
|
- "vmstorage"
|
2019-05-22 21:23:23 +00:00
|
|
|
command:
|
|
|
|
- '--storageNode=vmstorage:8401'
|
|
|
|
ports:
|
|
|
|
- 8481:8481
|
|
|
|
restart: always
|
2019-11-07 10:09:27 +00:00
|
|
|
|
2019-05-22 21:23:23 +00:00
|
|
|
volumes:
|
|
|
|
promdata: {}
|
|
|
|
strgdata: {}
|
2019-11-07 10:09:27 +00:00
|
|
|
grafanadata: {}
|