Prometheus exporter for IRISnet Validators
This exporter is for monitoring information which is not provided from Tendermint’s basic Prometheus exporter (localhost:26660), and other specific information monitoring purposes
mkdir exporter && cd exporter
wget https://github.com/node-a-team/irisnet-validator_exporter/releases/download/v0.2.0/irisnet-validator_exporter.tar.gz && sha256sum irisnet-validator_exporter.tar.gz | fgrep 756eee5d9af2214ca10378198de690d1d6d1ba84ab3c7a514ec80d4d3e8986ce && tar -zxvf irisnet-validator_exporter.tar.gz || echo "Bad Binary!"
- Modify to the appropriate RPC and REST server address
- Modify the value of
operatorAddr
to the operator address of the validator you want to monitor. - You can change the service port(default: 26661)
vi config.toml
# TOML Document for IRISnet-Validator Exporter(Pometheus & Grafana)
title = "TOML Document"
[Servers]
[Servers.addr]
rpc = "localhost:26657"
rest = "localhost:1317"
[Validator]
operatorAddr = "iva1w2dakpuvh9mglcs54wayta5dyv8vj853y6jz9e"
[Options]
listenPort = "26661"
./irisnet-validator_exporter {path to config.toml}
// ex)
./irisnet-validator_exporter /data/iris/exporter
# Make log directory & file
sudo mkdir /var/log/userLog
sudo touch /var/log/userLog/irisnet-validator_exporter.log
# user: iris
sudo chown iris:iris /var/log/userLog/irisnet-validator_exporter.log
# $HOME: /data/iris
# Path to config.toml: /data/iris/exporter
sudo tee /etc/systemd/system/irisnet-validator_exporter.service > /dev/null <<EOF
[Unit]
Description=IRISnet Validator Exporter
After=network-online.target
[Service]
User=iris
WorkingDirectory=/data/iris
ExecStart=/data/iris/exporter/irisnet-validator_exporter \
/data/iris/exporter
StandardOutput=file:/var/log/userLog/irisnet-validator_exporter.log
StandardError=file:/var/log/userLog/irisnet-validator_exporter.log
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable irisnet-validator_exporter.service
sudo systemctl restart irisnet-validator_exporter.service
## log
tail -f /var/log/userLog/irisnet-validator_exporter.log