Install Node Exporter
Last updated
Last updated
In this section we will install Node Exporter on the Radix Node Server. It will be used to scrape the Node Server and send CPU, RAM, Disk and other system metrics plus Radix's network metrics to the monitoring web server. The steps here are based on Digital Ocean's guide which can be found here.
We’ll begin by creating a node_exporter user account. Create the account with the --no-create-home
and --shell /bin/false
options so that these users can’t log into the server.
You can find the latest binaries along with their checksums on Prometheus’ download page.
Use the sha256sum
command to generate a checksum of the downloaded file:
Verify the downloaded file’s integrity by comparing its checksum with the one on the download page.
Now, unpack the downloaded archive.
This will create a directory called node_exporter-1.2.0.linux-amd64
containing a binary file named node_exporter
, a license, and a notice.
Copy the binary to the /usr/local/bin
directory and set the user and group ownership to the node_exporter user that you created in Step 1.
Lastly, remove the leftover files from your home directory as they are no longer needed.
Create a Systemd service file for Node Exporter.
This service file tells your system to run Node Exporter as the node_exporter user with the default set of collectors enabled.
Copy the following content into the service file:
Save the file and close your text editor.
Finally, reload systemd
to use the newly created service.
You can now run Node Exporter using the following command:
Verify that Node Exporter’s running correctly with the status
command.
Like before, this output tells you Node Exporter’s status, main process identifier (PID), memory usage, and more.
If the service’s status isn’t active
, follow the on-screen messages and re-trace the preceding steps to resolve the problem before continuing.
Lastly, enable Node Exporter to start on boot.
And that's it for preparing your Node Server. The next step is to install the RadixNode package on the server which can be found here