Monitoring *NIX Systems with Prometheus
47%
Installing the Node Exporter
The next step is to install the Node Exporter on both server1 and server2. This exporter is one of the most popular exporters. It was developed by the same team that created Prometheus, and it's a reliable exporter for monitoring *NIX systems (Darwin, Dragonfly, FreeBSD, Linux, Solaris, NetBSD, OpenBSD...). Windows users can use the windows_exporter exporter, a community-driven project that exposes Windows performance counters.
To proceed, follow these instructions and apply them to both servers (server1 and server2):
# Export the download URL and download the Node Exporter
url=https://github.com/prometheus/node_exporter/releases/download/v1.10.2/node_exporter-1.10.2.linux-amd64.tar.gz
cd $(mktemp -d) && wget $url
# Extract the tarball and move the binary to /usr/local/bin
tar -xvf node_exporter-1.10.2.linux-amd64.tar.gz
cd node_exporter-1.10.2.linux-amd64
cp node_exporter /usr/local/bin/
# Add a dedicated user for the Node Exporter and set the right permissions
useradd --no-create-home --shell /bin/false node_exporter
# Set ownership
chown node_exporter:node_exporter /usr/local/bin/node_exporter
Now, create a systemd service file for the Node Exporter:
cat < /etc/systemd/system/node_exporter.service Observability with Prometheus and Grafana
A Complete Hands-On Guide to Operational Clarity in Cloud-Native SystemsEnroll now to unlock all content and receive all future updates for free.
