Skip to content

Commit c11915e

Browse files
committed
add grafana dashboard to prometheus-grafana example
1 parent b17f5c8 commit c11915e

File tree

6 files changed

+13348
-2
lines changed

6 files changed

+13348
-2
lines changed

authzed-dedicated-metrics/prometheus-grafana/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ Here's an example of a filled-out configuration:
5858

5959
4. Run `docker compose up`
6060

61+
### Grafana dashboard
62+
63+
This example auto-provisions the SpiceDB Grafana dashboard from `grafana/dashboards/spicedb_grafana_dash.json` when Grafana starts.
64+
6165
### Ports:
6266

6367
Prometheus: 9090

authzed-dedicated-metrics/prometheus-grafana/compose.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ services:
2121
- "GF_SECURITY_ADMIN_USER=admin"
2222
- "GF_SECURITY_ADMIN_PASSWORD=grafana"
2323
volumes:
24-
- "./grafana:/etc/grafana/provisioning/datasources"
24+
- "./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml"
25+
- "./grafana/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml"
26+
- "./grafana/dashboards:/etc/grafana/provisioning/dashboards"
2527
volumes:
2628
prom_data:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: 1
2+
3+
providers:
4+
- name: "spicedb"
5+
orgId: 1
6+
folder: ""
7+
type: "file"
8+
disableDeletion: false
9+
editable: true
10+
options:
11+
path: /etc/grafana/provisioning/dashboards

authzed-dedicated-metrics/prometheus-grafana/grafana/dashboards/dashboard.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)