Validator Monitoring
Last updated
Last updated
DENTNet supports to monitor the performance of your validator nodes.
You can follow these steps to set up your monitoring, incl. or use an individual setup.
This document is an example of how to set up monitoring. Please perform your setup based on your network structure and security setup.
The monitoring should run on a machine different from your node. The monitoring machine will access the node on port 9615 to fetch the current status.
Make sure your network and firewall setup allows this communication.
We strongly recommend opening up port 9615 only between your monitoring machine and your node.
Connect to each of your DENTNet nodes you want to monitor, find your docker-compose.yml, and edit it:
Add a new mapping in the ports:
section
Add the lines to the command:
section
Save the file and restart the docker for the new settings to take effect.
First, connect to your monitoring machine.
Create the Prometheus config directory
Create a file at /etc/prometheus/rules.yml
to set up how you will be alerted. Add this sample content or modify it as needed:
Next, create a file at /etc/prometheus/prometheus.yml
.
Ensure you enter your nodes' correct IPs in the last line of the file ("targets").
Create the Alertmanager config directory
Create a configuration file named alertmanager.yml
under /etc/alertmanager. Edit alermanager.yml
to fit your needs.
An example file with SMTP email alerts
Start Alertmanager and Prometheus, e.g. by entering
You can check the output for error messages to make sure your setup is working.
In your Grafana installation add the data source for your Prometheus instance, e.g. by adding a datasource.yml file:
Insert the needed settings:
Finally, restart Grafana on your monitoring machine.
Open the Grafana web interface using your monitoring machine address and the Grafana port, such as http://localhost:3000
. The default username and password are admin/admin.
Create a new dashboard by using the Import function and this URL https://grafana.com/grafana/dashboards/13759-substrate-node-template-metrics/
and your Prometheus data source from the dropdown.
You can now see the stats of your validator(s) on Grafana and you will be alerted via email if an instance is down.
Download Prometheus at and untar using
Download Alertmanager from and untar using
Follow the instructions to download and install Grafana at