-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into katana/strk-fee-token
- Loading branch information
Showing
6 changed files
with
1,983 additions
and
1,847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.