Skip to content

Support binding to a specific local address for http_response #5856

@zoonage

Description

@zoonage

Feature Request

Opening a feature request kicks off a discussion.

Proposal:

Add a bind interface/IP address to the http_response plugin to force the request to egress via a specific interface

[[inputs.http_response]]
  address = "http://google.com"
  bind = "eth0"

Current behavior:

The request uses the default net.Dialer which selects an interface for the request.

Desired behavior:

To be able to specify an interface or IP address as the address to bind the http.Client to.

Use case:

For hosts that have VPN tunnels for a specific interface's traffic it is useful to check that you can send a request via this interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for new plugin and for new features to existing pluginsgood first issueThis is a smaller issue suited for getting started in Telegraf, Golang, and contributing to OSS.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions