Setting Up Telemetry
## Overview
Overview
This document provides a step-by-step guide to setting up telemetry for monitoring the status of your Bor and Heimdall nodes in real time.
Dashboard Links
We provide dashboards for both Mainnet and Amoy Testnet:
Mainnet
Amoy Testnet
- Bor: https://bor-amoy.vitwit.com/
- Heimdall: https://heimdall-amoy.vitwit.com/
Setting Up Heimdall Telemetry
Follow the steps below to configure telemetry for Heimdall.
Step 1: Clone the Repository
git clone https://github.com/vitwit/matic-telemetry.gitStep 2: Configure the Telemetry Directory
cd matic-telemetry
mkdir -p ~/.telemetry/config
cp example.config.toml ~/.telemetry/config/config.tomlStep 3: Modify the Configuration File
Open the configuration file using a text editor:
sudo nano ~/.telemetry/config/config.tomlModify the following details:
[stats_details]
secret_key = ""
node = "<node-name>"
net_stats_ip = "heimdall-amoy.vitwit.com:3000"💡 Note: The secret key should be set as follows:
- Mainnet:
heimdall_mainnet - Amoy Testnet:
amoy-testnet
Step 4: Build and Deploy Telemetry
go mod tidy
go build -o telemetry
mv telemetry /usr/binStep 5: Create the Telemetry Service
Create a telemetry.service file:
echo "[Unit]
Description=Telemetry
After=network-online.target
[Service]
User=$USER
ExecStart=$(which telemetry)
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target" | sudo tee "/lib/systemd/system/telemetry.service"Step 6: Enable and Start the Service
sudo systemctl enable telemetry.service
sudo systemctl start telemetry.serviceStep 7: Verify Logs
Check the service logs to ensure telemetry is running properly:
journalctl -u telemetry -fBy following these steps, you will successfully configure telemetry for your Heimdall node, ensuring real-time monitoring and improved operational efficiency.
Setting Up Bor Telemetry
Follow the steps below to configure telemetry for Bor.
Step 1: Open the Bor Configuration File
vi /var/lib/bor/config.tomlStep 2: Modify the ethstats Flag
Find the ethstats parameter and modify it:
ethstats = "<name>:<network>@<url>:3000"💡 Note: The URL should be entered as follows:
- Mainnet:
<name>:mainnet@bor-mainnet.vitwit.com:3000 - Amoy Testnet:
<name>:amoy-testnet@bor-amoy.vitwit.com:3000
Step 3: Restart Bor
Restart Bor for the changes to take effect:
sudo systemctl restart borYou should be able to verify the dashboards once you restart your Bor node.
By following these steps, you will successfully configure telemetry for your Bor node, ensuring real-time monitoring and improved operational efficiency.
Last updated on
Rewards and staking incentives
On the Polygon PoS network, validators stake their POL tokens as collateral to help secure the network. In return for their service, they earn rewards.
Default ports for nodes
This guide provides a detailed list of default ports used across Bor and Heimdall nodes. Understanding these ports is crucial for network configuration and effe