When you enable HTTP proxy forwarding, you create a single point through which multiple machines
send requests to an external server. If you are behind a corporate proxy or firewall, Apigee
may not be able to send metrics to Cloud Monitoring with its default settings. You can set and
modify settings directly in the OpenTelemetry collector to have its requests pass through the proxy server.
This topic describes how to configure the OpenTelemetry collector settings using one of the three available
environment variables:
NO_PROXY: Accepts a list of hostnames or IP addresses whose traffic should not flow through the HTTP proxy.
HTTP_PROXY: Accepts the URL of the proxy whose server is used for HTTP connections.
HTTPS_PROXY: Accepts the URL of the proxy whose server is used for HTTPS connections.
Configure OpenTelemetry collector settings
You can configure the OpenTelemetry collector settings to work with HTTP proxy forwarding by using the
metrics.collector.envVars property in overrides.yaml. The metrics.collector.envVars property
allows you to pass in the environment variables supported by OpenTelemetry. See
Proxy supportin the OpenTelemetry documentation for more details.
You can use the following values for the metrics.collector.envVars property:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eEnabling HTTP proxy forwarding creates a central point for multiple machines to send requests to external servers, which can impact Apigee's ability to send metrics to Cloud Monitoring when behind a corporate proxy or firewall.\u003c/p\u003e\n"],["\u003cp\u003eYou can configure the OpenTelemetry collector to route requests through a proxy server using the \u003ccode\u003emetrics.collector.envVars\u003c/code\u003e property in \u003ccode\u003eoverrides.yaml\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eHTTP_PROXY\u003c/code\u003e and \u003ccode\u003eHTTPS_PROXY\u003c/code\u003e environment variables define the URL of the proxy server for HTTP and HTTPS connections, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNO_PROXY\u003c/code\u003e variable allows you to specify a list of hostnames or IP addresses that should bypass the HTTP proxy.\u003c/p\u003e\n"],["\u003cp\u003eApplying the configuration changes requires using the helm command with either an \u003ccode\u003eupgrade\u003c/code\u003e or \u003ccode\u003einstall\u003c/code\u003e of the apigee-telemetry chart.\u003c/p\u003e\n"]]],[],null,[]]