mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Setup Grafana provisioning for docker-compose setup (#50)
* setup Grafana provisioning for docker-compose setup * review fixes
This commit is contained in:
parent
f4e63cd070
commit
2afe511d80
5 changed files with 1883 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
9
deployment/docker/provisioning/dashboards/dashboard.yml
Normal file
9
deployment/docker/provisioning/dashboards/dashboard.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: 1
|
||||||
|
|
||||||
|
providers:
|
||||||
|
- name: Prometheus
|
||||||
|
orgId: 1
|
||||||
|
folder: ''
|
||||||
|
type: file
|
||||||
|
options:
|
||||||
|
path: /etc/grafana/provisioning/dashboards
|
1832
deployment/docker/provisioning/dashboards/victoriametrics.json
Normal file
1832
deployment/docker/provisioning/dashboards/victoriametrics.json
Normal file
File diff suppressed because it is too large
Load diff
14
deployment/docker/provisioning/datasources/datasource.yml
Normal file
14
deployment/docker/provisioning/datasources/datasource.yml
Normal 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
|
Loading…
Reference in a new issue