경우에 따라 Apigee에서 제공하는 기본 측정항목 수집 시스템과 동시에 또는 그 대신 Prometheus 또는 Grafana와 같은 자체 측정항목 수집 시스템을 사용할 수도 있습니다. 자체 측정항목 수집 시스템 사용에 대한 자세한 내용은 Apigee 커뮤니티에서 자체 Prometheus(및 Grafana)를 가져와 Apigee Hybrid 모니터링 도움말을 참조하세요.
$GCP_REGION은 apigee-logger 및 apigee-metrics가 데이터를 푸시하는 Google Cloud 리전을 식별합니다.
$GCP_PROJECT_ID는 apigee-logger와 apigee-metrics가 데이터를 푸시하는 Google Cloud 프로젝트를 식별합니다.
$SERVICE_ACCOUNT_PATH는 Apigee Hybrid 설치 절차 중 다운로드한 Google Cloud 서비스 계정 키 파일의 파일 시스템에 있는 경로입니다.
키와 연결된 서비스 계정에 Monitoring 측정항목 작성자 역할이 있어야 합니다. 서비스 계정을 만드는 방법에 대한 자세한 내용은 서비스 계정 정보: 서비스 계정 만들기를 참조하세요.
[[["이해하기 쉬움","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)"],[],[],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"]]