You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When debugging certain networks, I may want to explicitly prefer IPv4 or IPv6 depending on what I am debugging. When I do this, my toolset typically supports -4 and -6 CLI flags to force what family of socket I wish to make.
(Sorry for the late response, I was out on vacation.)
I think adding this flag to Cloudprober will not make sense for the following reasons:
Most of the Cloudprober users don't even configure it to resolve targets first. In those cases, Cloudprober cannot control which stack will be used - 4 or 6, and providing this CLI flag will be confusing and sometimes frustrating.
I think people who care about picking the specific IP version stack, like we did in Google Cloud (GCP) days, will do it explicitly through configs. In GCP monitoring setup, we had explicitly different probes for IPv4 and IPv6 in the same config.
Network tools you're referring to do pretty much one thing at a time, e.g. testing or connecting to one target. On the other hand, Cloudprober is primarily driven by configs, each invocation doing multiple things -- multiple probes, multiple targets. Affecting the behavior for some through flags is not the right approach. That's the reason I want to avoid adding CLI flags as much as possible.
Yeah, I am due writing a detailed general config doc, to describe various (kind-of) advanced options 😔. I started something, I'll prioritize finishing that.
Activity
conallob commentedon Apr 16, 2025
I'm happy to implement this, if someone can assign this bug to me
manugarg commentedon Apr 26, 2025
(Sorry for the late response, I was out on vacation.)
I think adding this flag to Cloudprober will not make sense for the following reasons:
conallob commentedon Apr 26, 2025
No worries, I was on vacation this week too.
Fair enough. Would you at least be open to adding these tips to the docs, to save folks some time coming around to using the config options?
manugarg commentedon May 1, 2025
Yeah, I am due writing a detailed general config doc, to describe various (kind-of) advanced options 😔. I started something, I'll prioritize finishing that.
[-]Implement -4 and -6 CLI flags, to explicitly choose IPv4 or IPv6 at Runtime[/-][+]Document IP version options[/+]manugarg commentedon Mar 20, 2026
It's documented now.