feat: http 'source_interface' parameter#1503
feat: http 'source_interface' parameter#1503raboof wants to merge 1 commit intoprometheus:masterfrom
Conversation
109cab9 to 6d281cb Compare Somewhat based on prometheus#1152 Signed-off-by: Arnout Engelen <arnout@bzzt.net>
6d281cb to 599e22b Compare | I did some digging into the topic and I think that this is not something that should be supported by blackbox exporter, because it falls outside the core responsibility of the blackbox exporter. You can use network namespaces to bind your process to a network namespace that's attached to your interface, if that doesn't work for you, checkout few examples in here and here |
Thank you!
I see I did not do a good job explaining what the use case for the feature in this PR is: I have a node that has both a wired ethernet connection and a wifi card. I want to run the blackbox exporter on this node to monitor the connectivity of a target host both via ethernet and via wifi. Perhaps that was clear to you but I wanted to make sure to describe it in the PR now :) It looks like your suggestion is to wrap blackbox-exporter using the techniques you link, to 'convince' it to bind to the 'right' interface, right? tbh that looks quite a bit more complex than adding the feature to blackbox-exporter :) . Of course if you decide it's out-of-scope for blackbox-exporter we can close this PR, but I'll likely just keep using this patch. |
What this PR does / Which issue(s) does the PR fix:
Add a 'source_interface' parameter to the 'http' probe
Does this PR introduce a user-facing change?
Sadly I didn't see a clear way to meaningfully test this feature.
Checklist
release-notessection of PR Desc.