Set up Monitoring using the RadixNode CLI
RadixDLT uses Prometheus and Grafana to provide nodes with a real-time monitoring and alert system. A custom-built exporter extracts metrics from the node and sends it Prometheus which stores it as into the time series data. Grafana reads this time series information and uses it to build monitoring dashboards for displaying node information and alerts in real-time.
The Exporter/Prometheus/Grafana installation has been packaged as part of the
radixnode script. This will allow node runners to get a monitoring dashboard up and running by simply running the script and answering a few questions.
|This setup runs the monitor on the same machine as the node. In the near future we will offer a cloud-based installation that will have less of an impact on the node in terms of maintenance and resource usage.|
It probably goes without saying that before you can install the node monitoring software, you must have a node up and running. If you haven’t, then run through one of our guides which will show you how to do it. We have separate instructions for installing a Docker node and installing a Standalone node.
So before you start you must have the
radixnode script in place, and an installed node.
The monitoring instance uses port 3000 on your server, so make sure that this port is open and available for Grafana to use.
If you are running a standalone node then you must first change to the
sudo su - radixdlt
This is not required if you’re running a Docker node.
Now you can run the script to set up monitoring:
And that’s pretty much it.
You can view your node’s dashboard remotely using any browser, using this URL pattern:
node-ip-address is the external IP address your node’s server.
Grafana will display a page asking for your username and password.
adminfor the username and password
Since this is the first time you’ve run the monitor, enter
admin for the username and
admin again for the password. Grafana will now display another dialog asking you to change the password for the
admin user. (Again, this is because this is the first time you’ve logged into the monitoring service.)
Grafana will now display your dashboard:
If you’re shutting down the monitor for a Standalone node, then you’ll first need to sign in as the
radixdlt user before issuing the shutdown command:
sudo su - radixdlt
Then, to shut down the monitor, use the following command: