network_exporter
network_exporter copied to clipboard
no-ipv6 flag is not working.
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?
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.
Should be fixed with https://github.com/syepes/network_exporter/releases/tag/1.8.0