IOSTMON - Monitoring IOST Nodes With Node Exporter, Prometheus, and Grafana

03 Dec 2019
2 min read
Tutorial
2 min read
Article content

Attic Lab contributes to our collection of network monitoring tools by developing an IOSTMON. The tool aims to help DevOps teams, as well as regular users, to keep track of the activity of their IOST nodes. The tool is premised on public technologies, such as Node Exporter, Prometheus, and Grafana. As we plan to expand the number of supported metrics, any public contribution is warmly welcomed!

Requirements:

  1. Node exporter
  2. Prometheus
  3. Grafana

Step 1: Start Node Exporter with collector.textfile.directory

Create node_exporter user:

sudo useradd --no-create-home --shell /bin/false node_exporter 

Create directory:

sudo mkdir -p /var/lib/node_exporter/textfile_collector
sudo chown node_exporter:node_exporter /var/lib/node_exporter/textfile_collector

Create iost_metrics.prom

sudo touch /var/lib/node_exporter/textfile_collector/iost_metrics.prom 
sudo chmod o+w /var/lib/node_exporter/textfile_collector/iost_metrics.prom

Create service file:

vim /etc/systemd/system/node_exporter.service 
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target

[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/usr/local/bin/node_exporter --collector.textfile.directory /var/lib/node_exporter/textfile_collector

[Install]
WantedBy=multi-user.target

Step 2: Start script iost_exporter.sh

This script collect metrics to text file. You need to set variables in iost_exporter.sh. For example you can use supervisor to start this script.
To check Node Exporter use curl http://localhost:9100/metrics.

Step 3: Import template to Grafana

You can import template iost_dashboard.json to Grafana using standard import procedure.

***

Follow news and updates from Everstake by subscribing to the newsletter on our website and join the discussion on our social channels through the links below.
Website: everstake.one
Twitter: @Everstake_pool
Telegram: @Everstake_chat
Facebook: fb.me/everstake.one
Reddit: /r/Everstake/
Medium: medium.com/everstake

Dark - Light
Everstake Logo
Everstake
Content Manager
Everstake is one of the most reliable PoS validators on the market, with current volumes of customer staked funds exceeding 2B$ and over 735K+ delegators as of March 2023.

Contact us

Have questions?
We’re always there to answer!

Our distributed team of 20+ community managers is online 24/7 and is ready to assist you.