Installing Node Exporter on Ubuntu 22.04 LTS

Introduction

Node Exporter is a Prometheus exporter for hardware and operating system metrics. Prometheus is an open-source monitoring and alerting toolkit designed for reliability and scalability. Node Exporter is specifically focused on exporting system-level metrics from Linux and Unix-based systems.

Prerequisites

  • Up and running ubuntu 22.04 LTS machine.
  • Basic knowledge in linux commands.
  • Internet connectivity.

In this post, We will show to how to install node exporter on ubuntu 22.04 / Debian machine to get monitoring metrics and ship to Prometheus server.

To get more information Prometheus setup on ubuntu, Please click on given link.

Step 1: Run System Updates

Here are general steps you can follow to install Prometheus on Ubuntu using apt-get:.

To update ubuntu default repository.

sudo apt-get update 

Step 2: Installing Prometheus Node Exporter

To install Node Exporter on Ubuntu 22.04 LTS (or any Ubuntu version), you can follow these steps.

sudo apt-get install prometheus-node-exporter -y

Step 3: Controlling Node Exporter Service

By using systemctl utility we can control the any service in ubuntu linux machine.

To get status of node-exporter.

sudo systemctl status prometheus-node-exporter

To stop of node-exporter.

sudo systemctl stop prometheus-node-exporter

To start of node-exporter.

sudo systemctl start prometheus-node-exporter

To enable on boot node-exporter service.

sudo systemctl enable prometheus-node-exporter

To disable on boot node-exporter service.

sudo systemctl disable prometheus-node-exporter

Conclusion

We have successful installed node exporter on ubuntu 22.04 LTS.

Author

Installing Node Exporter on Ubuntu 22.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top