Skip to content

Commit

Permalink
prometheus expose (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 authored Nov 15, 2024
1 parent b1f41c7 commit 35b3e6c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
ports:
- "26656:26656" # Tendermint RPC
- "26657:26657" # Tendermint P2P
- "26660:26660" # Prometheus metrics
- "1317:1317" # REST API
- "9090:9090" # gRPC
- "2345:2345" # Debugging
Expand Down Expand Up @@ -58,6 +59,7 @@ services:
ports:
- "26658:26656" # Tendermint RPC for follower
- "26667:26657" # Tendermint P2P for follower
- "26661:26660" # Prometheus metrics
- "1318:1317" # REST API for follower
- "9091:9090" # gRPC for follower
- "2346:2345" # Debugging for follower
Expand Down
3 changes: 3 additions & 0 deletions scripts/init_follower.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ sed -i 's/timeout_commit = "5s"/timeout_commit = "30s"/' /root/.babylond/config/
# Change pprof_laddr to 0.0.0.0:6060
sed -i 's/^pprof_laddr = "localhost:6060"/pprof_laddr = "0.0.0.0:6060"/' /root/.babylond/config/config.toml

# Enable metrics
sed -i 's/prometheus = false/prometheus = true/' /root/.babylond/config/config.toml

# Disable iavl cache otherwise OOM
sed -i 's/iavl-cache-size = 781250/iavl-cache-size = 0/' /root/.babylond/config/app.toml
sed -i 's/iavl-disable-fastnode = false/iavl-disable-fastnode = true/' /root/.babylond/config/app.toml
Expand Down
3 changes: 3 additions & 0 deletions scripts/init_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ sed -i 's/network = "mainnet"/network = "signet"/' /root/.babylond/config/app.to
# Increase timeout_commit to 30s in config.toml
sed -i 's/timeout_commit = "5s"/timeout_commit = "30s"/' /root/.babylond/config/config.toml

# Enable metrics
sed -i 's/prometheus = false/prometheus = true/' /root/.babylond/config/config.toml

# Disable iavl cache otherwise OOM
sed -i 's/iavl-cache-size = 781250/iavl-cache-size = 0/' /root/.babylond/config/app.toml
sed -i 's/iavl-disable-fastnode = false/iavl-disable-fastnode = true/' /root/.babylond/config/app.toml
Expand Down

0 comments on commit 35b3e6c

Please sign in to comment.