In diesem Abschnitt werden Konfigurationsattribute zum Senden von Apigee Hybrid-Messwertdaten an Cloud Operations for GKE beschrieben.
Die Erfassung von Messwerten ist standardmäßig aktiviert. Weitere Informationen finden Sie unter Übersicht über die Messwerterfassung.
In einigen Fällen möchten Sie möglicherweise Ihr eigenes Messwerterfassungssystem wie Prometheus oder Grafana parallel mit oder anstelle des von Apigee bereitgestellten standardmäßigen Messwerterfassungssystems verwenden. Weitere Informationen zur Verwendung Ihres eigenen Messwerterfassungssystems finden Sie im Artikel Bring your own Prometheus (and Grafana) to monitor Apigee hybrid in der Apigee-Community.
Erforderliche Konfiguration
Die folgenden Überschreibungs-Dateieinstellungen konfigurieren die Messwerterfassung:
$GCP_REGION Gibt die Google Cloud-Region an, in der apigee-logger und apigee-metrics ihre Daten per Push übertragen.
$GCP_PROJECT_ID gibt das Google Cloud-Projekt an, in demapigee-logger und apigee-metrics Daten übertragen.
$SERVICE_ACCOUNT_PATH ist der Pfad in Ihrem Dateisystem zur Schlüsseldatei des Google Cloud-Dienstkontos, die während des Installationsvorgangs von Apigee Hybrid heruntergeladen wurde.
Das mit dem Schlüssel verknüpfte Dienstkonto muss die Rolle Monitoring-Messwert-Autor haben. Weitere Informationen zum Erstellen von Dienstkonten finden Sie unter Informationen zu Dienstkonten: Dienstkonten erstellen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-28 (UTC)."],[[["\u003cp\u003eApigee hybrid metrics data is sent to Cloud Operations for GKE, with metrics collection enabled by default.\u003c/p\u003e\n"],["\u003cp\u003eUsers can configure metrics collection by setting the Google Cloud region, project ID, and service account path in the overrides file.\u003c/p\u003e\n"],["\u003cp\u003eThe service account used for metrics collection must have the Monitoring Metrics Writer role in Google Cloud.\u003c/p\u003e\n"],["\u003cp\u003eAlternatively, users may employ their own systems, such as Prometheus or Grafana, for metrics collection alongside or instead of Apigee's default system.\u003c/p\u003e\n"],["\u003cp\u003eMetrics collection can be disabled by setting \u003ccode\u003emetrics: enabled: false\u003c/code\u003e in the overrides file.\u003c/p\u003e\n"]]],[],null,["# Configure metrics collection\n\n| You are currently viewing version 1.13 of the Apigee hybrid documentation. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\n\nThis section describes configuration properties for sending Apigee hybrid metrics data to\n[Cloud Operations for GKE](/monitoring/kubernetes-engine).\nMetrics collection is enabled by default. See also [Metrics collection overview](./metrics-collection).\n\nIn some cases, you may wish to use your own metrics collection system, such as\nPrometheus or Grafana, in parallel with or\ninstead of the default metrics collection system provided by Apigee. For details on using your\nown metrics collection system, see the article [Bring your own Prometheus (and Grafana) to monitor Apigee hybrid](https://www.googlecloudcommunity.com/gc/Cloud-Product-Articles/BYOP-Bring-your-own-Prometheus-and-Grafana-to-monitor-Apigee/ta-p/499772)\nin the Apigee Community.\n\nRequired configuration\n----------------------\n\nThe following overrides file settings configure metrics collection: \n\n```actionscript-3\ngcp:\n region: $GCP_REGION\n projectID: $GCP_PROJECT_ID\n\nmetrics:\n serviceAccountPath: $SERVICE_ACCOUNT_PATH\n```\n\n\nWhere:\n\n- `$GCP_REGION` identifies the Google Cloud [region](https://cloud.google.com/compute/docs/regions-zones#available) where the `apigee-logger` and the `apigee-metrics` push their data.\n- `$GCP_PROJECT_ID` identifies the project where `apigee-logger` and the `apigee-metrics` push their data.\n- `$SERVICE_ACCOUNT_PATH` is the path on your filesystem to the Google Cloud service account key file that was downloaded during the Apigee hybrid [installation procedure](/apigee/docs/hybrid/v1.13/precog-overview). The service account associated with the key must have the **Monitoring Metrics Writer** role. For details on creating service accounts, see [About service accounts: Create the service accounts](/apigee/docs/hybrid/v1.13/sa-about#create-the-service-accounts).\n\n\nExample: \n\n```actionscript-3\ngcp:\n region: us-central1\n projectID: acme-project\n\nmetrics:\n serviceAccountPath: ./service-accounts/metrics-sa.json\n```\n\nHow to disable metrics collection\n---------------------------------\n\nTo disable metrics collection, add the following configuration to your overrides and apply it\nto the cluster:\n\n```actionscript-3\nmetrics:\n enabled: false\n```\n\n*[Google Cloud]: Google Cloud"]]