Monitoring your Velas Node by StakingBridge.com

The Velas node will increase resource use as the network expands and demand increases, that is why it is necessary to keep monitored your CPU, RAM, Network and other stats.

StakingBridge
3 min readAug 3, 2021

The solution is made up of three pieces. Telegraf, Prometheus and Grafana to provide users and node managers a monitoring alternative to analyze CPU, RAM, network interfaces and I/O wait along with metrics from Velas Blockchain that we add to the public dashboard.

How add your node to the public Dashboard

  1. Install Telegraf on your server. Depending on which linux you use, the process varies a bit:

RHEL 8 / Centos 8/ Rocky Linux

sudo yum -y updatecat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo[influxdb] name = InfluxDB Repository - RHEL  baseurl = https://repos.influxdata.com/rhel/7/x86_64/stable/ enabled = 1 gpgcheck = 1 gpgkey = https://repos.influxdata.com/influxdb.key EOFsudo dnf -y install telegraf

UBUNTU 20.04

wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -source /etc/lsb-releaseecho "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.listapt updateapt install telegraf

2. Now that we have Telegraf installed, we modify the telegraf.conf file to point to the influxdb that feeds velasmonitor.stakingbridge.com and to setup the alias by which we can search for our node. If you prefer, you can download this cfg and use it as a base.

sudo vi /etc/telegraf/telegraf.conf

The file will be such that:

# Global Agent Configuration
[agent]
hostname = “YOUR_NODE_ALIAS” # set this to a name you want to identify your node in the dashboard
flush_interval = “15s”
interval = “15s”
# Input Plugins
[[inputs.cpu]]
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = false
[[inputs.disk]]
ignore_fs = [“devtmpfs”, “devfs”]
[[inputs.io]]
[[inputs.mem]]
[[inputs.net]]
[[inputs.system]]
[[inputs.swap]]
[[inputs.netstat]]
[[inputs.processes]]
[[inputs.kernel]]
[[inputs.diskio]]
# Output Plugin InfluxDB
[[outputs.influxdb]]
database = “metricsdb”
urls = [ “http://velasmonitor.stakingbridge.com:8086" ]
username = “metrics”
password = “password”

3. Once the file is edited we will have to launch telegraf to start monitoring.

sudo systemctl start telegraf

How do i check my node?

From top side, use the search engine where it says ¨Node¨ and look for the alias that you have configured in the telegraf.conf file. For example, searching “stakingbridge.com” shows node stats for our node.

"Please note that we are in experimentation stage, you may encounter errors, inaccurate metrics or bugs. Stakingbridge.com is not responsible for any inconvenience caused by the uses of our website"

Website | Twitter | Telegram

--

--