🆗Monitoring with Prometheus & Grafana
Prometheus serves as a monitoring platform that gathers metrics from monitored targets through scraping their metrics HTTP endpoints. In contrast, Grafana acts as a visualization dashboard specifically designed to present the collected data in an easily understandable and visually appealing manner.
The below guide is for setting up a local Prometheus & Grafana instance on the same server as your Avail node. If you're already experienced with Prometheus & Grafana and want to connect your Avail node to an existing Prometheus installation on a different server, include the --prometheus-external
flag in your Avail node's startup command.
Install Prometheus
Install prometheus and prometheus node exporter.
Create the prometheus.yml config file
Move prometheus.yml
to the correct location
Update the file permissions
Ensure Prometheus starts automatically
Restart Prometheus to activate latest settings
Check the status, ensure Prometheus has started without errors
Install Grafana
Install Grafana
Ensure Grafana starts automatically
Start Grafana
Check the status, ensure Grafana has started without errors
Setup Grafana Dashboard
Ensure port 3000 is open, example of adding to ubuntu firewall
In your browser navigate to http://<your validators ip address>:3000
. The default login username and password is admin/admin
You will be asked to reset your password, please write it down or remember the password as you will need it for the next login.
You will need to create a datasource. Navigate to Home->Connections->Data sources
Click on Add data source
Click on Prometheus
Set URL to "localhost:9090", then test and save the connection
Navigate back to your home page, on the top right in the menu select Import dashboard
Import the Avail Node Metrics file
You will have a new dashboard that opens and that you can use to monitor your node
Last updated