Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(*): prometheus expose #30

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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