📘 Monitoring Polkadot Nodes with Prometheus and Alertmanager
Requirements
Automatic Installation
source <(curl -s https://raw.githubusercontent.com/validexisinfra/polkadot/main/install-alertmanager.sh)Manual Installation
Install Node Exporter
cd $HOME
sudo wget $(curl -s https://api.github.com/repos/prometheus/node_exporter/releases/latest | grep "tag_name" | awk '{print "https://github.com/prometheus/node_exporter/releases/download/" substr($2, 2, length($2)-3) "/node_exporter-" substr($2, 3, length($2)-4) ".linux-amd64.tar.gz"}')
sudo tar xvf node_exporter-*.tar.gz
sudo cp ./node_exporter-*.linux-amd64/node_exporter /usr/local/bin/
sudo useradd --no-create-home --shell /usr/sbin/nologin node_exporter
sudo rm -rf ./node_exporter*Install Prometheus
Download and install
Prometheus Configuration
Create Prometheus systemd service
Create Alert Rules
Start and Enable the Prometheus Service
Install Alertmanager
Download and install
Configuration
Create Alertmanager service
Grafana
Install Required Dependencies
Add the Grafana Repository
Create a User for Grafana
Install Grafana Enterprise
Start and Enable the Grafana Server
Importing Dashboards into Grafana
Final Checks
Last updated