convert dashboard for provisioning (#62)

This commit is contained in:
Roman Khavronenko 2019-06-10 23:07:09 +01:00 committed by Aliaksandr Valialkin
parent 1c33b5937e
commit cd1bc32158
3 changed files with 8 additions and 1841 deletions

View file

@ -36,6 +36,12 @@ services:
grafana:
container_name: grafana
image: grafana/grafana:6.2.1
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:
- "victoriametrics"
ports:
@ -43,6 +49,7 @@ services:
volumes:
- grafanadata:/var/lib/grafana
- ./provisioning/:/etc/grafana/provisioning/
- ./../../dashboards/victoriametrics.json:/var/lib/grafana/vm.json
networks:
- vm_net
restart: always

View file

@ -6,4 +6,4 @@ providers:
folder: ''
type: file
options:
path: /etc/grafana/provisioning/dashboards
path: /var/lib/grafana/dashboards

File diff suppressed because it is too large Load diff