Skip to content

Commit e387d65

Browse files
committed
feat(cli): expose rollups-node prometheus metrics
1 parent 3a58ad0 commit e387d65

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.changeset/silent-bags-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cartesi/cli": patch
3+
---
4+
5+
expose rollups-node prometheus metrics

apps/cli/src/node/docker-compose-validator.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ services:
3232
environment:
3333
PROMPT_TXT_02_GRAPHQL: "GraphQL running at http://localhost:${CARTESI_LISTEN_PORT}/graphql"
3434
PROMPT_TXT_03_INSPECT: "Inspect running at http://localhost:${CARTESI_LISTEN_PORT}/inspect/"
35+
PROMPT_TXT_08_METRICS: "Prometheus metrics at http://localhost:${CARTESI_LISTEN_PORT}/metrics"
3536

3637
traefik-config-generator:
3738
environment:
@@ -57,3 +58,14 @@ services:
5758
loadBalancer:
5859
servers:
5960
- url: "http://validator:10000/graphql"
61+
TRAEFIK_CONFIG_VALIDATOR_METRICS: |
62+
http:
63+
routers:
64+
validator_metrics:
65+
rule: "PathPrefix(`/metrics`)"
66+
service: validator_metrics
67+
services:
68+
validator_metrics:
69+
loadBalancer:
70+
servers:
71+
- url: "http://validator:10000/metrics"

0 commit comments

Comments
 (0)