Enabling process monitoring with node-exporter

Due to OS version different node-exporter not processing OS process in our scenario, We need to modify
the prometheus-node-exporter service, To do that we need to open the given systemD file using the given prometheus-node-exporter.service

Step 1: Get SystemD Path

Execute the command to know the systemD path and file name.

sudo systemctl status prometheus-node-exporter

Step 2: Open SystemD Service File

Open the systemD file and append –collector.systemd on ExecStart line.

sudo vim /lib/systemd/system/prometheus-node-exporter.service

Append the append --collector.systemd in ExecStart line like this and save and exit from the text editor.

Step 3: Reload New Changes

We need to execute the below command for reload the service.

To reload the daemon.

sudo systemctl daemon-reload

To restart the node-exporter service.

sudo systemctl restart prometheus-node-exporter

You should able to get running services status in node-exporter metrics and you can use the prometheus server in order to enable the monitoring on it.

Conclusion

We have successfully configure process monitoring using node-exporter on ubuntu linux, Kindly report in case you are facing defeculties with follwing details.

  • OS name
  • OS version
  • Package name
  • Logs – Error / Warning / failed

Get in touch with our new devops tools based website- https://www.devopstricks.in/

Enabling process monitoring with node-exporter

Leave a Reply

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

Scroll to top