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

03 DEC 2019
2 min read
Company News
IOST
monitoring
node
tutorial
validator
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 the world's leading validator, with 735,000+ delegators across 77 blockchain networks. We stake $4.8 billion in assets and provide best-in-class staking services to institutional and retail clients.

Contact us

Have questions?
We’re always there to answer!

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

We’d love to hear your thoughts.

Your opinion matters. Share any concerns, issues, or suggestions you may have with us so that Everstake could work on them, and your experience could improve.
Give FEEDBACK