On Wednesday, 1 March 2023 at 11:11:19 UTC Nicholas Reid wrote:

Has anyone else had trouble getting the node exporter working on Ubuntu 
22.04.


Nope, it works perfectly for me using the release binaries from github.

There's another guide you can look at here, and see if you did anything 
differently: 
https://nsrc.org/workshops/2022/rwnog/nmm/netmgmt/en/prometheus/ex-node-exporter.html
 

The service starts up OK and I can curl it locally 
(localhost:9100/metrics). However, when I try to access it remotely I'm not 
able to connect on 9100, or any port I set it to listen on . 


What does "ps auxwww | grep node_exporter" show on the host where 
node_exporter is running?

What does "iptables -L -n -v" on the host where node_exporter is running 
show?

What does "telnet x.x.x.x 9100" from a remote host show? (where x.x.x.x is 
the host where node_exporter is running)

Also: try running "tcpdump -i eth0 -nn tcp port 9100 or icmp" on the 
node_exporter host (replace 'eth0' with the actual network interface), 
*then* run "telnet x.x.x.x 9100" from a remote host. What *exactly* does 
tcpdump show?  The details of this will help determine the problem.

(e.g. do you just see SYN packets arriving? Do you see SYNs followed by 
ICMP messages, if so what exactly is the ICMP type/code? Do you see SYNs 
followed by SYN ACK responses, but repeated SYNs?)


I've confirmed that ufw is inactive, and the service has bound to port 9100 
with netstat .


It will need to be bound to :::9100 or 0.0.0.0:9100 to accept connections 
from outside on all interfaces.  If it's bound to a single interface like 
127.0.0.1:9100 then it will only accept connections on that address.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/dd3fc669-b332-409c-ae7a-4ce9d0fe7abfn%40googlegroups.com.

Reply via email to