2019-05-22 21:23:23 +00:00
|
|
|
version: '3.5'
|
|
|
|
services:
|
2020-07-16 23:18:03 +00:00
|
|
|
vmagent:
|
|
|
|
container_name: vmagent
|
|
|
|
image: victoriametrics/vmagent
|
2019-05-22 21:23:23 +00:00
|
|
|
depends_on:
|
2020-07-16 23:18:03 +00:00
|
|
|
- "vminsert"
|
2019-05-22 21:23:23 +00:00
|
|
|
ports:
|
2020-07-16 23:18:03 +00:00
|
|
|
- 8429:8429
|
2019-05-22 21:23:23 +00:00
|
|
|
volumes:
|
2020-07-16 23:18:03 +00:00
|
|
|
- vmagentdata:/vmagentdata
|
2019-05-22 21:23:23 +00:00
|
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
command:
|
2020-07-16 23:18:03 +00:00
|
|
|
- '--promscrape.config=/etc/prometheus/prometheus.yml'
|
|
|
|
- '--remoteWrite.url=http://vminsert:8480/insert/0/prometheus/'
|
2019-05-22 21:23:23 +00:00
|
|
|
restart: always
|
2019-11-07 10:09:27 +00:00
|
|
|
|
|
|
|
grafana:
|
|
|
|
container_name: grafana
|
2021-03-30 17:43:54 +00:00
|
|
|
image: grafana/grafana:7.5.1
|
2019-11-07 10:09:27 +00:00
|
|
|
depends_on:
|
2020-07-16 23:18:03 +00:00
|
|
|
- "vmselect"
|
2019-11-07 10:09:27 +00:00
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- grafanadata:/var/lib/grafana
|
|
|
|
- ./provisioning/:/etc/grafana/provisioning/
|
2020-07-16 23:18:03 +00:00
|
|
|
- ./../../dashboards/victoriametrics.json:/var/lib/grafana/dashboards/vm.json
|
|
|
|
- ./../../dashboards/vmagent.json:/var/lib/grafana/dashboards/vmagent.json
|
2019-11-07 10:09:27 +00:00
|
|
|
|
2019-05-22 21:23:23 +00:00
|
|
|
vmstorage:
|
|
|
|
container_name: vmstorage
|
2019-12-24 11:27:12 +00:00
|
|
|
image: victoriametrics/vmstorage
|
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-12-24 11:27:12 +00:00
|
|
|
image: victoriametrics/vminsert
|
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-12-24 11:27:12 +00:00
|
|
|
image: victoriametrics/vmselect
|
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:
|
2020-07-16 23:18:03 +00:00
|
|
|
vmagentdata: {}
|
2019-05-22 21:23:23 +00:00
|
|
|
strgdata: {}
|
2019-11-07 10:09:27 +00:00
|
|
|
grafanadata: {}
|