-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add multiple_ips option and address tag #10868
Conversation
check.check(None) | ||
check.check(None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check.check(None) | |
check.check(None) | |
dd_run_check(check) | |
dd_run_check(check) |
small nit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that tcp_check
still uses check.check(None)
for its other non-e2e tests, so it's up to you if you want to apply this change or keep things consistent for a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this in another PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Can we just always call gethostbyname_ex rather than adding a new config option? |
That would break monitors and dashboards by default for customers aggregating by |
* Add multiple_ips option * Use gethostbyname_ex * Add test * Rename to resolve_ips * Add address service check group
What does this PR do?
Add
multiple_ips
configuration optionWhen enabled, integration calls
gethostbyname_ex
(https://docs.python.org/3/library/socket.html#socket.gethostbyname_ex) instead ofgethostbyname
(https://docs.python.org/3/library/socket.html#socket.gethostbyname)A domain can have multiple IPs attached, and
gethostbyname
returns only one of the IPs, whereasgethostbyname_ex
returns all of them.So when
multiple_ips
is enabled, we run the check against all the IPs attached to the domain instead of oneMotivation
Support case
Additional Notes
Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached