Dalam beberapa kasus, Anda mungkin ingin menggunakan sistem pengumpulan metrik Anda sendiri, seperti Prometheus atau Grafana, secara paralel dengan atau sebagai pengganti sistem pengumpulan metrik default yang disediakan oleh Apigee. Untuk mengetahui detail tentang cara menggunakan sistem pengumpulan metrik Anda sendiri, lihat artikel Membawa Prometheus (dan Grafana) Anda sendiri untuk memantau Apigee hybrid di Komunitas Apigee.
$GCP_REGION mengidentifikasi region Google Cloud tempat apigee-logger dan apigee-metrics mendorong datanya.
$GCP_PROJECT_ID mengidentifikasi project Google Cloud tempat apigee-logger dan apigee-metrics mendorong data mereka.
$SERVICE_ACCOUNT_PATH adalah jalur di sistem file Anda ke file kunci akun layanan Google Cloud yang didownload selama prosedur penginstalan hibrida Apigee.
Akun layanan yang terkait dengan kunci harus memiliki peran Monitoring Metrics Writer. Untuk mengetahui detail tentang cara membuat akun layanan, lihat
Tentang akun layanan: Membuat akun layanan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 UTC."],[],[],null,["# Configure metrics collection\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.15/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.15/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| **Note:** See [`metrics.serviceAccountPath`](/apigee/docs/hybrid/v1.15/config-prop-ref#metrics-serviceaccountpath) in the Configuration property reference.\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"]]