mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
grafana setup
This commit is contained in:
@@ -80,7 +80,24 @@ services:
|
||||
networks:
|
||||
- api.network
|
||||
restart: unless-stopped
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
ports:
|
||||
- '3001:3000'
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_PASSWORD=testing
|
||||
volumes:
|
||||
- './grafana/provisioning/datasources:/etc/grafana/provisioning/datasources'
|
||||
- './grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards'
|
||||
- './grafana/dashboards:/var/lib/grafana/dashboards'
|
||||
- 'grafana_data:/var/lib/grafana'
|
||||
networks:
|
||||
- api.network
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
prometheus_data: null
|
||||
grafana_data: null
|
||||
networks:
|
||||
api.network: null
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: 'NBA Go Dashboards'
|
||||
orgId: 1
|
||||
folder: ''
|
||||
type: file
|
||||
disableDeletion: false
|
||||
options:
|
||||
# mount point inside the container
|
||||
path: /var/lib/grafana/dashboards
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: http://prometheus:9090
|
||||
isDefault: true
|
||||
Reference in New Issue
Block a user