Install Node Exporter
Introduction
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.
Install Node Exporter
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.
sudo useradd --no-create-home --shell /bin/false node_exporterYou can find the latest binaries along with their checksums on Prometheus’ download page.
curl -LO https://github.com/prometheus/node_exporter/releases/download/v1.6.1/node_exporter-1.6.1.linux-amd64.tar.gz Use the sha256sum command to generate a checksum of the downloaded file:
sha256sum node_exporter-1.6.1.linux-amd64.tar.gzVerify the downloaded file’s integrity by comparing its checksum with the one on the download page.
ecc41b3b4d53f7b9c16a370419a25a133e48c09dfc49499d63bcc0c5e0cf3d01 node_exporter-1.6.1.linux-amd64.tar.gz
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
Install the Radix NodeLast updated
Was this helpful?