2019-05-22 21:23:23 +00:00
|
|
|
version: '3.5'
|
|
|
|
services:
|
|
|
|
prometheus:
|
|
|
|
container_name: prometheus
|
2019-11-12 01:43:48 +00:00
|
|
|
image: prom/prometheus:v2.14.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
|
2019-11-12 01:50:54 +00:00
|
|
|
image: grafana/grafana:6.4.4
|
2019-11-07 10:09:27 +00:00
|
|
|
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-13 13:21:53 +00:00
|
|
|
image: victoriametrics/vmstorage:v1.29.2-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-13 13:21:53 +00:00
|
|
|
image: victoriametrics/vminsert:v1.29.2-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-13 13:21:53 +00:00
|
|
|
image: victoriametrics/vmselect:v1.29.2-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: {}
|