diff --git a/docker-compose.yml b/docker-compose.yml index 340f026..4cdd2de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -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 diff --git a/scripts/init_follower.sh b/scripts/init_follower.sh index c19f90e..956f5cb 100755 --- a/scripts/init_follower.sh +++ b/scripts/init_follower.sh @@ -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 diff --git a/scripts/init_master.sh b/scripts/init_master.sh index ecdd3cb..ec21992 100755 --- a/scripts/init_master.sh +++ b/scripts/init_master.sh @@ -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