Skip to content

Commit

Permalink
Merge branch 'main' into katana/strk-fee-token
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy authored Oct 15, 2024
2 parents f083c44 + 547ad8b commit 2e4f96d
Show file tree
Hide file tree
Showing 6 changed files with 1,983 additions and 1,847 deletions.
20 changes: 20 additions & 0 deletions crates/katana/monitoring/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Katana Monitoring

This directory contains an example of how to set up monitoring for Katana using Prometheus and Grafana.

The `docker-compose.yml` file defines services for:
- Katana node
- Prometheus
- Grafana

Configuration files are provided for Prometheus and Grafana dashboards.

To run:

```
docker-compose up
```

This will start Katana with metrics enabled, Prometheus scraping those metrics, and Grafana dashboards to visualize the data.

Access the Grafana dashboard at http://localhost:3000.
46 changes: 46 additions & 0 deletions crates/katana/monitoring/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "katana"

services:
katana:
restart: unless-stopped
image: ghcr.io/dojoengine/dojo
ports:
- "5050:5050" # rpc
- "9001:9001" # metrics
command: >
katana
--db-dir .katana/data-dir
--metrics 0.0.0.0:9001
--host 0.0.0.0 --port 5050
prometheus:
restart: unless-stopped
image: prom/prometheus
depends_on:
- katana
ports:
- 9090:9090
volumes:
- ./prometheus/:/etc/prometheus/
- prometheusdata:/prometheus
command:
- --config.file=/etc/prometheus/config.yml
- --storage.tsdb.path=/prometheus

grafana:
restart: unless-stopped
image: grafana/grafana
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana/datasources:/etc/grafana/provisioning/datasources
- grafanadata:/var/lib/grafana

volumes:
prometheusdata:
driver: local
grafanadata:
driver: local
Loading

0 comments on commit 2e4f96d

Please sign in to comment.