Monitoring your StaFi and SaFiHub Validator

This solution uses Telegraf, Prometheus and Grafana to provide users and node managers a monitoring tool to analyze CPU, RAM, network interfaces and I/O wait along with metrics from Stafi Chain that will be displayed in the public dashboard. Why should you monitor your node using the public dashboard?

  1. Control the use of resources in your server.
  2. It allows you to detect problems, even before they happen.
  3. Maximizes the security of the StaFi network and minimizes the risk of slashing.
  4. Transparency: allows everyone to see how stable your validator works.


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 = enabled = 1 gpgcheck = 1 gpgkey = EOFsudo dnf -y install telegraf

UBUNTU 20.04

wget -qO- | sudo apt-key add -source /etc/lsb-releaseecho "deb${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 and to setup the alias used to track our node on the public dashboard.

Modify the file /etc/telegraf/telegraf.conf and use this 👉 config file.

Set this to a name you want to identify your node on the dashboard

hostname = “YOUR_NODE_ALIAS

The file will be such that:

# Global Agent Configuration
hostname = "YOUR_NODE_ALIAS" # set this to a name you want to identify your node in the grafana dashboard
flush_interval = "15s"
interval = "15s"
# Input Plugins
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = false
ignore_fs = ["devtmpfs", "devfs"]
# ## An array of urls to scrape metrics from.
urls = ["http://localhost:9615"]
urls = ["http://localhost:26660"]
# Output Plugin InfluxDB
database = "metricsdb"
urls = [ "" ]
username = "metrics"
password = "password"

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

sudo systemctl start telegraf

⚠️ In some distributions it is necessary to install influxdb for Telegraf to run correctly, if so, perform a standard installation, no need to configure anything else.


  1. First all, you will be able to run StaFiHub node, you can found full instructions here:
  2. Configure config.yaml and edit this three options (usually at end of the file):
  3. prometheus = enable / prometheus_listen_addr = “” / namespace = “tendermint_testnet”
# When true, Prometheus metrics are served under /metrics on# PrometheusListenAddr.# Check out the documentation for the list of available metrics.prometheus = true
# Address to listen for Prometheus collector(s) connectionsprometheus_listen_addr = ""
# Maximum number of simultaneous connections.# If you want to accept a larger number than the default, make sure# you increase your OS limits.# 0 - unlimited.max_open_connections = 3
# Instrumentation namespace
namespace = "tendermint_testnet"

prometheus = enable

namespace = “tendermint_testnet

The file must look like this:

Monitor your 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_TR-3970X” shows stats for validator.

⚠️ “Please note that we are in experimentation stage, you may encounter errors, inaccurate metrics or bugs. is not responsible for any inconvenience caused by the uses of this tool.

Website | Twitter | Telegram




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Python Vs R: The Ultimate Guide


Game Dev Digest Issue #108 — Work Smarter, Not Harder

Issue #108 - Work Smarter, Not Harder

Running a tech platform is a balancing act

Servlets and JSP

Why Dynamic Libraries?

Understand the voting system (and your 30% APR…)

Comprehensive Guide: Conda Virtual Environment

Cloud Vs On-Prem: What’s Right For Your Application?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


More from Medium

How to Install jq(JSON processor) on RHEL/CentOS

How to Install Linux Kernel 5.17 on AlmaLinux 8 / Fedora 35

Install Linux kernel

A few words on Docker bridge networks

Odoo 14 dev ubuntu 20.04