Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
啟用 HTTP Proxy 轉送功能的記錄
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
啟用 HTTP Proxy 轉送時的記錄
啟用 HTTP Proxy 轉送功能後,您會建立單一節點,多部機器可透過該節點將要求傳送至外部伺服器。為了記錄,您可能不希望透過 Proxy 轉送所有流量。
以下程序說明如何在覆寫檔案中,為特定主機停用 HTTP Proxy 轉送功能。
程序
- 如要針對特定主機停用記錄的 Proxy 轉送功能,請在
overrides.yaml 中設定 logger.EnvVars 屬性:
logger:
...
EnvVars:
NO_PROXY: '<comma-separated-values>'
例如:
EnvVars:
NO_PROXY: 'kubernetes.default.svc,oauth2.googleapis.com,logging.googleapis.com'
logger.EnvVars 屬性可讓您傳入 Fluent Bit 支援的環境變數。請參閱 Fluent Bit 說明文件中的「NO_PROXY」。
-
使用
apigeectl apply 將變更套用至記錄器,並使用
--telemetry 範圍:
apigeectl apply --telemetry -f overrides.yaml
另請參閱
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-27 (世界標準時間)。"],[],[]]