network_exporter icon indicating copy to clipboard operation
network_exporter copied to clipboard

no-ipv6 flag is not working.

Open 0megam opened this issue 9 months ago • 1 comments

I have tried to disable ipv6, but looks like --no-ipv6 is not working:

/app # ./network_exporter --version
1.7.9

/app # ps aux | grep network
    1 root      0:11 /app/network_exporter --no-ipv6
   98 root      0:00 grep network

/app # netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.11:35843        0.0.0.0:*               LISTEN      -
tcp        0      0 :::9427                 :::*                    LISTEN      1/network_exporter
udp        0      0 127.0.0.11:33579        0.0.0.0:*                           -

It looks like network_exporter is still binding to an IPv6 socket and is also trying to resolve AAAA records for the targets. Am I missing something here?

0megam avatar Mar 25 '25 16:03 0megam

Please try using --web.listen-address=127.0.0.1:9427, like this: ./network_exporter --web.listen-address=127.0.0.1:9427. This option --no-ipv6 is used in the probe scenario.

jedi201321 avatar May 27 '25 06:05 jedi201321

Should be fixed with https://github.com/syepes/network_exporter/releases/tag/1.8.0

syepes avatar Oct 04 '25 23:10 syepes