Skip to content

Commit

Permalink
docs(katana): update monitoring example (#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy authored Jan 21, 2025
1 parent c05b0cb commit c989595
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 107 deletions.
11 changes: 8 additions & 3 deletions crates/katana/monitoring/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "katana"
services:
katana:
restart: unless-stopped
image: ghcr.io/dojoengine/dojo
image: ghcr.io/dojoengine/dojo:v1.0.12
ports:
- "5050:5050" # rpc
- "9001:9001" # metrics
Expand All @@ -15,7 +15,7 @@ services:
prometheus:
restart: unless-stopped
image: prom/prometheus
image: prom/prometheus:v3.1.0
depends_on:
- katana
ports:
Expand All @@ -29,7 +29,7 @@ services:

grafana:
restart: unless-stopped
image: grafana/grafana
image: grafana/grafana:11.4.0
depends_on:
- prometheus
ports:
Expand All @@ -38,6 +38,11 @@ services:
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana/datasources:/etc/grafana/provisioning/datasources
- grafanadata:/var/lib/grafana
environment:
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/provisioning/dashboards/overview.json
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SECURITY_ADMIN_USER=admin
- GF_AUTH_ANONYMOUS_ENABLED=true

volumes:
prometheusdata:
Expand Down
12 changes: 12 additions & 0 deletions crates/katana/monitoring/grafana/dashboards/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: 1

providers:
- name: "Katana"
orgId: 1
folder: ""
type: file
disableDeletion: false
updateIntervalSeconds: 10
allowUiUpdates: true
options:
path: /etc/grafana/provisioning/dashboards
Loading

0 comments on commit c989595

Please sign in to comment.