grafana setup

This commit is contained in:
Ravi Prasad
2025-05-08 21:00:35 -05:00
parent 2ee23ad0f2
commit a49481de7b
3 changed files with 36 additions and 0 deletions
+17
View File
@@ -80,7 +80,24 @@ services:
networks: networks:
- api.network - api.network
restart: unless-stopped 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: volumes:
prometheus_data: null prometheus_data: null
grafana_data: null
networks: networks:
api.network: null 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