Создание екмпортера в графане при старте контейнера
This commit is contained in:
parent
7bac1b5a91
commit
4938dc07e4
3 changed files with 17 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
apiVersion: 1
|
||||
providers:
|
||||
- name: 'apache-dashboard'
|
||||
type: file
|
||||
disableDeletion: false
|
||||
updateIntervalSeconds: 10
|
||||
allowUiUpdates: true
|
||||
options:
|
||||
path: /var/lib/grafana/dashboard
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
apiVersion: 1
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: http://10.10.1.3:9090
|
||||
isDefault: true
|
||||
|
|
@ -61,6 +61,7 @@ services:
|
|||
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
- ../../configs/grafana/provisioning:/etc/grafana/provisioning
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue