network_exporter icon indicating copy to clipboard operation
network_exporter copied to clipboard

how to use ipv6 address in mtr and tcp exporters

Open varsha-kohirkar opened this issue 1 year ago • 3 comments

Hello,

We have been using the network exporter and it works great...but we are moving to ipv6 addresses now and I tried the ipv6 addresses but those arent working in network_exporter.yml file. am I missing something? could you please give me an example of how can I use ipv6 addresses?

varsha-kohirkar avatar Sep 11 '24 18:09 varsha-kohirkar

how can I add tcp targets with ipv6 addresses in network exporter yaml file? @syepes

varsha-kohirkar avatar Oct 17 '24 23:10 varsha-kohirkar

By default it supports IPv6 unless it was disabled with the flag, if you specify a DNS record what has an IPv6 it should work by(https://pkg.go.dev/net#Resolver.LookupIPAddr)

https://github.com/syepes/network_exporter/blob/676ac07a57764047f38eb904b7ba00e81483f4eb/pkg/common/func.go#L51

syepes avatar Nov 11 '24 10:11 syepes

Or you can also change the separater from : to space or something and then it works even for ipv6 tcp probes...I tried that From: "Sebastian @.> Date: Mon, Nov 11, 2024, 2:47 AM Subject: [External] Re: [syepes/network_exporter] how to use ipv6 address in mtr and tcp exporters (Issue #60) To: @.> Cc: @.>, "Author"< @.>

By default it supports IPv6 unless it was disabled with the flag, if you specify a DNS record what has an IPv6 it should work by( https://pkg.go.dev/net#Resolver.LookupIPAddr)

https://github.com/syepes/network_exporter/blob/676ac07a57764047f38eb904b7ba00e81483f4eb/pkg/common/func.go#L51

— Reply to this email directly, view it on GitHub https://github.com/syepes/network_exporter/issues/60#issuecomment-2467855949, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLG7T7IKICUK4MFKRGNJWI32ACDJXAVCNFSM6AAAAABOBQFZEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRXHA2TKOJUHE . You are receiving this because you authored the thread.Message ID: @.***>

varsha-kohirkar avatar Nov 12 '24 23:11 varsha-kohirkar