En esta sección se describen las propiedades de configuración para enviar datos de métricas de Apigee hybrid a Cloud Operations.
La recogida de métricas está habilitada de forma predeterminada. Consulta también el resumen de la recogida de métricas.
Configuración obligatoria
Los siguientes ajustes del archivo de anulaciones configuran la recogida de métricas:
$GCP_REGION identifica la región de GCP
donde apigee-logger
y apigee-metrics envían sus datos.
$GCP_PROJECT_ID identifica el proyecto de Google Cloud donde apigee-logger y apigee-metrics envían sus datos.
$SERVICE_ACCOUNT_PATH es la ruta del archivo de clave de la cuenta de servicio de GCP en tu sistema de archivos, que se descargó durante el procedimiento de instalación de Apigee hybrid.
La cuenta de servicio asociada a la clave debe tener el rol Escritor de métricas de Monitoring. Para obtener más información sobre cómo crear cuentas de servicio, consulta el paso 5: Añadir cuentas de servicio.
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-08-28 (UTC)."],[[["\u003cp\u003eThis documentation is for Apigee hybrid version 1.3, which is no longer supported and requires an upgrade to a newer version.\u003c/p\u003e\n"],["\u003cp\u003eApigee hybrid metrics data is sent to Cloud Operations, with metrics collection enabled by default.\u003c/p\u003e\n"],["\u003cp\u003eConfiguration for metrics collection involves specifying the GCP region, project ID, and the path to the service account key file, where the associated service account needs the Monitoring Metrics Writer role.\u003c/p\u003e\n"],["\u003cp\u003eMetrics collection can be disabled by setting \u003ccode\u003emetrics: enabled: false\u003c/code\u003e in the overrides file and applying it to the cluster.\u003c/p\u003e\n"]]],[],null,["# Configure metrics collection\n\n| You are currently viewing version 1.3 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. 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](https://cloud.google.com/monitoring/kubernetes-engine/).\nMetrics collection is enabled by default. See also [Metrics collection overview](./metrics-collection).\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 GCP [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 GCP service account key file that was downloaded during the Apigee hybrid [installation procedure](/apigee/docs/hybrid/v1.3/precog-overview). The service account associated with the key must have the **Monitoring Metrics Writer** role. For details on creating service accounts, see [Step 5: Add service\n accounts](/apigee/docs/hybrid/v1.3/precog-serviceaccounts).\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"]]