HTTP 프록시 전달을 사용 설정할 때는 여러 머신이 외부 서버로 요청을 전송하는 단일 지점을 만듭니다. 기업 프록시나 방화벽 뒤에 있는 경우 Apigee가 기본 설정으로 Cloud Monitoring에 측정항목을 전송하지 못할 수 있습니다. OpenTelemetry 수집기에서 직접 설정을 설정하고 수정하여 요청이 프록시 서버를 통과하도록 할 수 있습니다.
이 주제에서는 사용 가능한 세 가지 환경 변수 중 하나를 사용하여 OpenTelemetry 수집기 설정을 구성하는 방법을 설명합니다.
NO_PROXY: HTTP 프록시를 통해 트래픽이 흐르지 않아야 하는 호스트 이름 또는 IP 주소의 목록을 허용합니다.
HTTP_PROXY: HTTP 연결에 사용되는 서버가 있는 프록시의 URL을 허용합니다.
HTTPS_PROXY: HTTPS 연결에 사용되는 서버가 있는 프록시의 URL을 허용합니다.
OpenTelemetry 수집기 설정 구성
overrides.yaml의 metrics.collector.envVars 속성을 사용하여 HTTP 프록시 전달과 함께 작동하도록 OpenTelemetry 수집기 설정을 구성할 수 있습니다. metrics.collector.envVars 속성을 사용하면 OpenTelemetry에서 지원되는 환경 변수를 전달할 수 있습니다. 자세한 내용은 OpenTelemetry 문서의 프록시 지원을 참고하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(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,["# OpenTelemetry collector with HTTP proxy forwarding enabled\n\n| You are currently viewing version 1.14 of the Apigee hybrid documentation. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\nWhen you enable HTTP proxy forwarding, you create a single point through which multiple machines\nsend requests to an external server. If you are behind a corporate proxy or firewall, Apigee\nmay not be able to send metrics to Cloud Monitoring with its default settings. You can set and\nmodify settings directly in the OpenTelemetry collector to have its requests pass through the proxy server.\n\nThis topic describes how to configure the OpenTelemetry collector settings using one of the three available\nenvironment variables:\n\n- `NO_PROXY`: Accepts a list of hostnames or IP addresses whose traffic should not flow through the HTTP proxy.\n- `HTTP_PROXY`: Accepts the URL of the proxy whose server is used for HTTP connections.\n- `HTTPS_PROXY`: Accepts the URL of the proxy whose server is used for HTTPS connections.\n\n\u003cbr /\u003e\n\nConfigure OpenTelemetry collector settings\n------------------------------------------\n\nYou can configure the OpenTelemetry collector settings to work with HTTP proxy forwarding by using the\n`metrics.collector.envVars` property in `overrides.yaml`. The `metrics.collector.envVars` property\nallows you to pass in the environment variables supported by OpenTelemetry. See [Proxy support](https://opentelemetry.io/docs/collector/configuration/#proxy-support)in the OpenTelemetry documentation for more details.\n\nYou can use the following values for the `metrics.collector.envVars` property:\n\n- For an `http` proxy: \n\n ```\n metrics:\n ...\n collector:\n envVars:\n HTTP_PROXY: '\u003cproxy-address\u003e'\n ```\n\n for example: \n\n ```\n envVars:\n HTTP_PROXY: 'http://1.1.1.1:80'\n ```\n- For an `https` proxy: \n\n ```\n metrics:\n ...\n collector:\n envVars:\n HTTPS_PROXY: '\u003cproxy-address\u003e'\n ```\n\n for example: \n\n ```\n envVars:\n HTTPS_PROXY: 'https://1.1.1.1:80'\n ```\n- For addresses that must not use the proxy: \n\n ```\n metrics:\n ...\n collector:\n envVars:\n NO_PROXY: '\u003ccomma-separated-values\u003e'\n ```\n\n for example: \n\n ```\n envVars:\n NO_PROXY: 'http://1.1.1.1:80, http://1.1.1.1:81'\n ```\n\nApply the changes\n-----------------\n\nUse the following command to apply the changes with the `apigee-telemetry` chart: \n\n```\nhelm upgrade telemetry apigee-telemetry/ \\\n --namespace APIGEE_NAMESPACE \\\n --atomic \\\n -f OVERRIDES_FILE\n```\n| **Note:** If you see an error saying `Error: UPGRADE FAILED: \"telemetry\" has no deployed releases`, replace `upgrade` with `install` and try the command again.\n\nWhat's next\n-----------\n\n- See [`metrics.collector.envVars`](/apigee/docs/hybrid/v1.14/config-prop-ref#logger-envVars) in the Configuration properties reference.\n- Learn how to [Configure forward proxying for API proxies](/apigee/docs/hybrid/v1.14/forward-proxy)."]]