Pass Infrastructure agent parameters to an on-host integration

Problem

You have config parameters defined in the Infrastructure agent and you want to pass the parameters to an on-host integration.

Solution

You can pass config parameters set in the agent to on-host integrations by adding the variable passthrough_environment to the Infrastructure agent's configuration file.

For example, if you want to pass the proxy options configured in the Infrastructure agent to an integration, add the following configuration to the Infrastructure config file:

passthrough_environment:
  HTTPS_PROXY
  HTTP_PROXY

For more help

Recommendations for learning more: