Both exporter and the template (Prometheus/Grafana) are public and they demonstrate a possibility to display basic metrics of EOS-like networks such as EOS, TELOS, BOS, MEETONE. Thus, the metrics exporter should be installed and launched for every single network. It’s also planned to expand the number of chain specific metrics so that we can have a detailed and complete picture of each ecosystem. In this regard, contributions to our GitHub repository is much welcomed!
At the moment we are working on basic metrics for Cyberway and Worbli.
Requirements:
- Node exporter
- Prometheus
- Grafana
Step 1: Start Node Exporter with collector.textfile.directory
Create directory:
mkdir -p /var/lib/node_exporter/textfile_collector
chown node_exporter:node_exporter /var/lib/node_exporter/textfile_collector
Change the 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 eos_exporter.sh
This script collects metrics to a text file. You need to set variables in eos_exporter.sh. You can use the supervisor to start this script. To check Node Exporter use curl http://localhost:9100/metrics.
To get metrics for other cryptocurrencies you need to create other scripts. For example bos_exporter.sh.
Step 3: Import template to Grafana
You can import template Nodes_metrics.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