Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use ipv6 address in mtr and tcp exporters #60

Open
varsha-kohirkar opened this issue Sep 11, 2024 · 3 comments
Open

how to use ipv6 address in mtr and tcp exporters #60

varsha-kohirkar opened this issue Sep 11, 2024 · 3 comments

Comments

@varsha-kohirkar
Copy link

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
Copy link
Author

varsha-kohirkar commented Oct 17, 2024

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

@syepes
Copy link
Owner

syepes commented Nov 11, 2024

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)

addrs, err := resolver.LookupIPAddr(ctx, host)

@varsha-kohirkar
Copy link
Author

varsha-kohirkar commented Nov 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants