What is Node Exporter or a Prometheus Exporter?
Prometheus provides a wide variety of exporters to expose metrics according to different use cases. Node Exporter is one of the most commonly used metrics exporters of Prometheus. Node Exporter can be used to expose system-related metrics. This is an official exporter of Prometheus written in the Go programming language.
Node Exporter could fetch the most important and most common system metrics like CPU, Disk, Memory, Processes, Network IO, etc.
Note: For Windows users, another exporter named Windows Exporter can be used.
If you have not yet installed Prometheus, please follow Setup Prometheus for Monitoring to get started.
Today's Agenda
In
this post, we will learn how to install Prometheus Node Exporter to expose system metrics for monitoring and create detailed visualizations on Grafana.
Prerequisite
This post has been prepared for the audience who :
- Have access to a Linux-based system although the steps are almost similar in other platforms like CentOS or MacOS.
- Have a basic understanding of Linux based systems and their commands.
- Have Prometheus installed already to which we will add the exporter configuration. If not already done, please follow Setup Prometheus for Monitoring.
Let's get started
Run the below shell script with the root user on the server. You will see Node Exporter running as a service on port 9100 in your machine.
Note: You can update the version of Node Exporter in the shell script in shaded regions.
Please follow our post Configure Exporters in Prometheus to understand how to connect Node Exporter with Prometheus to start getting the system metrics.
You can also create a new user for Node Exporter to make the necessary changes in the script.
If you want to know how you can create a new user in Linux, please go through our post on Setup Prometheus for Monitoring posts and follow Step 1 of the post.
Finally, run the below command to check if Node Exporter has started exposing the system metrics at port 9100.
![]() |
Node Exporter exposing system metrics |
Comments
Post a Comment