linuxterminalprometheusprometheus-node-exporter

Node Exporter bind address is already running


Node Exporter is always running on my local machine on localhost:9100 even if I don't execute it with terminal following this error message:

FATA[0000] listen tcp :9100: bind: address already in use  source="node_exporter.go:172"

By which I can understand that this port number is already being used by another application but the thing is I don't have anything hosted there. This is what netstat | grep 9100 gives:

tcp        0      0 localhost:60232         localhost:9100          ESTABLISHED
tcp6       0      0 localhost:9100          localhost:60232         ESTABLISHED

Solution

  • All I had to do was to "kill" the 9100 port in which Node Exporter was running by using fuser -k 9100/tcp as this was shown on How to kill a process running on particular port in Linux?.