This guide will walk you through the process of enabling monitoring in your Redbelly Network node. The --statusserver option is part of the node's binary and allows you to monitor the health and status of your node. You can read about it in official Redbelly Developer Portal
Before starting, make sure that:
redbelly.service)sudo cp /etc/systemd/system/redbelly.service /etc/systemd/system/redbelly.service.backup
sudo nano /etc/systemd/system/redbelly.service
sudo vi /etc/systemd/system/redbelly.service
The file should look similar to this:
[Unit]
Description=Redbelly Network Node
After=network.target
[Service]
Type=simple
User=redbelly
WorkingDirectory=/opt/redbelly
ExecStart=/opt/redbelly/redbelly --mainnet
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
Find the line starting with ExecStart=. It will look similar to:
ExecStart=/opt/redbelly/redbelly --mainnet
--mainnet:
ExecStart=/opt/redbelly/redbelly --statusserver.addr=0.0.0.0 --statusserver.port=6539 --prometheus.addr=127.0.0.1 --mainnet
ExecStart=/opt/redbelly/redbelly --mainnet
ExecStart=/opt/redbelly/redbelly --statusserver.addr=0.0.0.0 --statusserver.port=6539 --prometheus.addr=127.0.0.1 --mainnet
--statusserver.addr=0.0.0.0 - Allows external connections--statusserver.port=6539 - Port for status server--prometheus.addr=127.0.0.1 - Prometheus metrics only locallyCtrl+X, then Y, then EnterEsc, type :wq, press Enter# Reload systemd configuration
sudo systemctl daemon-reload
# Start service again
sudo systemctl start redbelly.service
# Check status
sudo systemctl status redbelly.service
sudo systemctl is-active redbelly.service
Should return: active
# Check firewall status
sudo ufw status
# Open port 6539
sudo ufw allow 6539/tcp
# Check if rule was added
sudo ufw status numbered
OR restrict access to a specific IP:
sudo ufw allow from to any port 6539 proto tcp
sudo ufw allow from to any port 6539 proto tcp
You can use curl directly in the terminal:
# Check if status server responds
curl http://127.0.0.1:6539/status
# Check Prometheus metrics
curl http://127.0.0.1:6539/metrics
The output will appear as JSON (for /status) or in Prometheus format (for /metrics).
If you want to check remotely (e.g., from your own computer):
Make sure that port 6539 is open in the firewall (ufw allow 6539/tcp or restricted to a specific IP).
http://SERVER_IP:6539/status or http://SERVER_IP:6539/metrics