Cluster dashboard (#222)

* add dashboard for cluster version

* fix queries and panels

* review fixes

* use resident memory for memory usage panel

* fix job selectors
This commit is contained in:
Roman Khavronenko 2019-11-07 10:09:27 +00:00 committed by Aliaksandr Valialkin
parent 89c03a5464
commit 4e7a2a41a4
5 changed files with 4149 additions and 19 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,25 +14,41 @@ services:
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
networks:
- docker_net
restart: always
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
vmstorage:
container_name: vmstorage
image: victoriametrics/vmstorage:v1.28.3-cluster
ports:
- 8482:8482
- 8400:8400
- 8401:8401
- 8482
- 8400
- 8401
volumes:
- strgdata:/storage
command:
- '--storageDataPath=/storage'
networks:
- docker_net
restart: always
vminsert:
container_name: vminsert
image: victoriametrics/vminsert:v1.28.3-cluster
@ -41,10 +57,9 @@ services:
command:
- '--storageNode=vmstorage:8400'
ports:
- 8480:8480
networks:
- docker_net
- 8480
restart: always
vmselect:
container_name: vmselect
image: victoriametrics/vmselect:v1.28.3-cluster
@ -54,12 +69,9 @@ services:
- '--storageNode=vmstorage:8401'
ports:
- 8481:8481
networks:
- docker_net
restart: always
volumes:
promdata: {}
strgdata: {}
networks:
docker_net:
driver: bridge
grafanadata: {}

View File

@ -1,6 +1,6 @@
global:
scrape_interval: 10s
evaluation_interval: 10s
scrape_interval: 1s
evaluation_interval: 1s
remote_write:
- url: "http://vminsert:8480/insert/0/prometheus/"

View File

@ -0,0 +1,9 @@
apiVersion: 1
providers:
- name: Prometheus
orgId: 1
folder: ''
type: file
options:
path: /var/lib/grafana/dashboards

View File

@ -0,0 +1,14 @@
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
- name: VictoriaMetrics
type: prometheus
access: proxy
url: http://vmselect:8481/select/0/prometheus
isDefault: false