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

feat: allow to specify dial interface #1622

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 24, 2024

  1. feat: allow to specify dial interface

    by default the tcp port status collector listen on all interfaces but
    selects the first interface found to issue the request. this commit
    makes the collector to accept an interface to which we want to call.
    
    for example:
    
    ```yaml
      collectors:
      - tcpPortStatus:
          collectorName: test
          port: 10248
          dialInterface: lo
    ```
    
    this definition will make the collector listen on all interface but call
    127.0.0.1:10248 to test. other example could be:
    
    ```yaml
      collectors:
      - tcpPortStatus:
          collectorName: test
          port: 10248
          dialInterface: eth0
    ```
    
    this again will make the collector listen in all interfaces but it will
    use the ip found on eth0 to issue the call.
    ricardomaraschini committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    f7b62c6 View commit details
    Browse the repository at this point in the history