Skip to content

Commit 89a6f4e

Browse files
authored
Add monitoring to hydra demo (#2161)
<!-- Describe your change here --> Adding a minimal Prometheus + Grafana monitoring setup for Hydra nodes, including panels for insight into the node's activity during demo. **Acknowledgment:** This dashboard is largely based on the work originally done by @jmagan. Thanks for laying the groundwork! 🙏 --- <!-- Consider each and tick it off one way or the other --> * [X] CHANGELOG updated or not needed * [X] Documentation updated or not needed * [X] Haddocks updated or not needed * [X] No new TODOs introduced or explained herafter
2 parents 771f65c + be956a6 commit 89a6f4e

File tree

15 files changed

+1393
-2
lines changed

15 files changed

+1393
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ when the number of persisted `StateChanged` events exceeds the configured `--per
7979
- Don't keep around invalid transactions as they could lead to stuck Head.
8080

8181

82+
- Add grafana monitoring to hydra nix and docker demos.
83+
8284
## [0.22.2] - 2025-06-30
8385

8486
* Fix wrong hydra-script-tx-ids in networks.json

demo/docker-compose.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
cardano-node:
3-
image: ghcr.io/intersectmbo/cardano-node:10.2
3+
image: ghcr.io/intersectmbo/cardano-node:10.4.1
44
volumes:
55
- ./devnet:/devnet
66
environment:
@@ -189,11 +189,27 @@ services:
189189
command:
190190
- --config.file=/etc/prometheus/prometheus.yml
191191
volumes:
192-
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
192+
- ./prometheus/docker/prometheus.yml:/etc/prometheus/prometheus.yml:ro
193193
networks:
194194
hydra_net:
195195
ipv4_address: 172.16.238.5
196196

197+
grafana:
198+
image: grafana/grafana:latest
199+
container_name: grafana
200+
ports:
201+
- "3000:3000"
202+
environment:
203+
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
204+
- DS_PROMETHEUS=prometheus
205+
volumes:
206+
- "./grafana/docker/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml"
207+
- "./grafana/docker/dashboard.json:/var/lib/grafana/dashboards/dashboard.json"
208+
- "./grafana/docker/default.yaml:/etc/grafana/provisioning/dashboards/default.yaml"
209+
networks:
210+
hydra_net:
211+
ipv4_address: 172.16.238.8
212+
197213
networks:
198214
hydra_net:
199215
driver: bridge

0 commit comments

Comments
 (0)