Skip to content

Commit

Permalink
feat(cli): expose rollups-node prometheus metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
endersonmaia committed Aug 12, 2024
1 parent a256dca commit 121605f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silent-bags-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cartesi/cli": patch
---

expose rollups-node prometheus metrics
12 changes: 12 additions & 0 deletions apps/cli/src/node/docker-compose-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
environment:
PROMPT_TXT_02_GRAPHQL: "GraphQL running at http://localhost:${CARTESI_LISTEN_PORT}/graphql"
PROMPT_TXT_03_INSPECT: "Inspect running at http://localhost:${CARTESI_LISTEN_PORT}/inspect/"
PROMPT_TXT_08_INSPECT: "Prometheus metrics at http://localhost:${CARTESI_LISTEN_PORT}/metrics"

traefik-config-generator:
environment:
Expand All @@ -57,3 +58,14 @@ services:
loadBalancer:
servers:
- url: "http://validator:10000/graphql"
TRAEFIK_CONFIG_VALIDATOR_METRICS: |
http:
routers:
validator_metrics:
rule: "PathPrefix(`/metrics`)"
service: validator_metrics
services:
validator_metrics:
loadBalancer:
servers:
- url: "http://validator:10000/metrics"

0 comments on commit 121605f

Please sign in to comment.