Skip to content

Commit

Permalink
feat: add example dashboard and datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinov committed Dec 10, 2018
1 parent 658c359 commit 5bc04f2
Show file tree
Hide file tree
Showing 5 changed files with 2,857 additions and 1 deletion.
8 changes: 8 additions & 0 deletions example/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: "3.7"

volumes:
prometheus_data: {}
grafana_data: {}

services:
pagespeed_exporter:
image: foomo/pagespeed_exporter:latest
Expand All @@ -18,10 +22,14 @@ services:
- "9090:9090"
volumes:
- "./prometheus/config.yml:/etc/prometheus/prometheus.yml:ro"
- "prometheus_data:/prometheus"

grafana:
restart: unless-stopped
image: grafana/grafana:latest
volumes:
- "grafana_data:/var/lib/grafana"
- "./grafana/provisioning/:/etc/grafana/provisioning/"
ports:
- "3000:3000"
environment:
Expand Down
11 changes: 11 additions & 0 deletions example/grafana/provisioning/dashboards/dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: 1

providers:
- name: 'Prometheus'
orgId: 1
folder: ''
type: file
disableDeletion: false
editable: true
options:
path: /etc/grafana/provisioning/dashboards

0 comments on commit 5bc04f2

Please sign in to comment.