Setup Grafana provisioning for docker-compose setup (#50)

* setup Grafana provisioning for docker-compose setup

* review fixes
This commit is contained in:
Roman Khavronenko 2019-06-06 21:37:44 +01:00 committed by Aliaksandr Valialkin
parent f4e63cd070
commit 2afe511d80
5 changed files with 1883 additions and 3 deletions

View file

@ -2,8 +2,32 @@
#### Docker compose #### Docker compose
Images prometheus, grafana and victoria metrics To spin-up setup of VictoriaMetrics, Prometheus and Grafana run following command:
Run: `docker-compose up` `docker-compose up`
*Note* make ensure that you specify correct VM url in Grafana Data Source `http://victroriametrics:8428` ##### VictoriaMetrics
VictoriaMetrics opens following ports:
* `--graphiteListenAddr=:2003`
* `--opentsdbListenAddr=:4242`
* `--httpListenAddr=:8428`
##### Prometheus
To access service open following [link](http://localhost:9090).
Prometheus is already configured to use VictoriaMetrics as remote storage.
##### Grafana
To access service open following [link](http://localhost:3000).
Default creds:
* login - `admin`
* password - `admin`
Grafana is provisioned by default with following entities:
* VictoriaMetrics datasource
* Prometheus datasource
* VictoriaMetrics overview dashboard

View file

@ -42,6 +42,7 @@ services:
- 3000:3000 - 3000:3000
volumes: volumes:
- grafanadata:/var/lib/grafana - grafanadata:/var/lib/grafana
- ./provisioning/:/etc/grafana/provisioning/
networks: networks:
- vm_net - vm_net
restart: always restart: always

View file

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

File diff suppressed because it is too large Load diff

View file

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