grafana: provision prometheus and some sample dashboards out of the box

single-dockerfile
Ubuntu 2 years ago
parent a2b5511966
commit 03086c7a06
  1. 4
      grafana.yaml
  2. 1862
      grafana/dashboards/docker.json
  3. 1518
      grafana/dashboards/nginx.json
  4. 15
      grafana/provisioning/dashboards/dashboards.yaml
  5. 13
      grafana/provisioning/datasources/prometheus.yaml

@ -23,7 +23,9 @@ services:
# reset the admin password on every run, since otherwise it defaults to admin/admin # reset the admin password on every run, since otherwise it defaults to admin/admin
entrypoint: ["sh", "-c", "grafana-cli admin reset-admin-password ${GRAFANA_ADMIN_PASSWORD} && /run.sh"] entrypoint: ["sh", "-c", "grafana-cli admin reset-admin-password ${GRAFANA_ADMIN_PASSWORD} && /run.sh"]
volumes: volumes:
- ./data/grafana:/var/lib/grafana - ./data/grafana/data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- ./grafana/dashboards:/etc/grafana/dashboards:ro
restart: always restart: always
# ports: # ports:
# - 3000:3000 # - 3000:3000

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,15 @@
apiVersion: 1
providers:
- name: 'hackerspace-zone dashboards'
orgId: 1
folder: ''
folderUid: ''
type: file
disableDeletion: false
updateIntervalSeconds: 10
allowUiUpdates: false
options:
path: /etc/grafana/dashboards
foldersFromFilesStructure: true

@ -0,0 +1,13 @@
apiVersion: 1
datasources:
- name: Prometheus
version: 2
orgId: 1
uid: 5qpBRfD4k
type: prometheus
access: proxy
url: http://prometheus:9090
basicAuth: false
isDefault: true
jsonData:
httpMethod: POST
Loading…
Cancel
Save