prometheus / node_exporter

Exporter for machine metrics
https://prometheus.io/
Apache License 2.0
11.22k stars 2.36k forks source link

The status value of TCP close_cait cannot be counted, but it actually has a value #3118

Open mashuangwei opened 2 months ago

mashuangwei commented 2 months ago

Host operating system: output of uname -a

node_exporter version: output of node_exporter --version

node_exporter command line flags

./node_exporter --collector.tcpstat

node_exporter log output

Are you running node_exporter in Docker?

What did you do that produced an error?

I want to see ' node_tcp_connection_states{state="close_wait"} 5', but it doesnt have

What did you expect to see?

node_tcp_connection_states{state="close_wait"} 5 node_tcp_connection_states{state="established"} 2 node_tcp_connection_states{state="wait_time"} 9 node_tcp_connection_states{state="fin_wait1"} 1 node_tcp_connection_states{state="syn_recv"} 1

What did you see instead?

TYPE node_tcp_connection_states gauge

node_tcp_connection_states{state="established"} 2 node_tcp_connection_states{state="wait_time"} 9 node_tcp_connection_states{state="fin_wait1"} 1 node_tcp_connection_states{state="syn_recv"} 1

chengjoey commented 2 months ago

could you provide the close wait details? use netstat -ton | grep CLOSE_WAIT