Skip to content

Document IP version options #1068

Closed
Closed

Description

@conallob

Spinning out the Feature Request from #1064

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.

As per https://cloudprober.org/docs/config/latest/overview/ , each probeset can be configured with an ip_version configuration option, however that should be for steady state configuration. Sometimes you may want to override the configuration with a CLI flag for some period of time.

Activity

  1. added
    enhancement
    on Apr 16, 2025
  2. conallob commented on Apr 16, 2025

    @conallob
    ContributorAuthor

    I'm happy to implement this, if someone can assign this bug to me

  3. manugarg commented on Apr 26, 2025

    @manugarg
    Contributor

    (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.
  4. conallob commented on Apr 26, 2025

    @conallob
    ContributorAuthor

    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?

  5. manugarg commented on May 1, 2025

    @manugarg
    Contributor

    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.

  6. changed the title [-]Implement -4 and -6 CLI flags, to explicitly choose IPv4 or IPv6 at Runtime[/-] [+]Document IP version options[/+] on Aug 6, 2025
  7. added
    documentation
    and removed
    enhancement
    on Aug 6, 2025
  8. self-assigned this
    on Aug 12, 2025
  9. manugarg commented on Mar 20, 2026

    @manugarg
    Contributor

    It's documented now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions