Step 2: Inside the scrape config change the scrape config section add the node exporter target as shown below. Step 1: Login to the Prometheus server and open the prometheus.yml file. If you have followed along the previous tutorial it should be that machine, if not please configure it before moving ahead. ![]() Note: This configuration should be done on the Prometheus server. If everything is working upto this point, Congratulations! You have configured a node exporter, it is up and running on the server, we have to add this server a target on the Prometheus server configuration. Something like this: Configure the Server as Target on Prometheus Server You can see all the server metrics by visiting your server URL on /metrics as shown below. Now, node exporter would be exporting metrics on port 9100. Step 6: Enable the node exporter service to the system startup. Step 5: Check the node exporter status to make sure it is running in the active state. Step 4: Reload the system daemon and start the node exporter service. Step 3: Add the following service file content to the service file and save it. Step 2: Create a node_exporter service file under systemd. Step 1: Create a node_exporter user to run the node exporter service. Mv node_exporter-1.0.1.linux-amd64/node_exporter /usr/local/bin/ Create a Custom Node Exporter Service Step 3: Move the node export binary to /usr/local/bin Step 1: Go to the official download page for the latest version and use wget to download the latest node exporter package. Port 9100: Opened in server firewall as Prometheus reads metrics on this port.Prometheus Server: In order to use the Prometheus Node Exporter you need a Prometheus Server running, please see the Prometheus setup guide for Linux.Configure the Server as Target on Prometheus Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |