Apigee hybrid usa el complemento Prometheus, estándar del sector, para recoger métricas. Todas las aplicaciones del plano de tiempo de ejecución híbrido de Apigee exponen un endpoint HTTP(s) que puede rastrear un servidor Prometheus. Las métricas tienen el formato OpenCensus.
Puedes usar tu propio servicio de recogida y creación de informes de métricas, teniendo en cuenta que las métricas de Apigee hybrid tienen el formato OpenCensus para que un servidor Prometheus las extraiga.
En la siguiente tabla se indican el número de puerto y el endpoint en los que el entorno híbrido expone las métricas para el raspado de cada pod del plano de ejecución.
Nombre del componente de Apigee
Número de puerto
Endpoint de métricas
Cassandra
7070
/metrics
Agente de Connect
7070
/metrics
Mart
8843
/v1/mart/metrics
Redis
8001
/stats/promethues
Tiempo de ejecución
8843
/v1/server/metrics
Sincronizador
8843
/v1/sync/metrics
UDCA
7070
/v1/server/metrics
Watcher
8843
/metricz
Ejemplo
En el siguiente ejemplo se muestra cómo recoger métricas del componente Runtime desde la línea de comandos:
[[["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-09-03 (UTC)."],[[["\u003cp\u003eApigee hybrid utilizes Prometheus for metrics collection, with all runtime applications exposing an HTTP(s) endpoint for scraping.\u003c/p\u003e\n"],["\u003cp\u003eApigee hybrid metrics are formatted in OpenCensus, designed for scraping by a Prometheus server.\u003c/p\u003e\n"],["\u003cp\u003eEach Apigee hybrid component, such as Cassandra, Connect Agent, and Runtime, exposes metrics through specific ports and endpoints.\u003c/p\u003e\n"],["\u003cp\u003eYou can collect metrics on a hybrid component such as runtime by using a curl command, via kubectl.\u003c/p\u003e\n"],["\u003cp\u003eThe current documentation version is 1.9, with details on supported versions available through the provided link.\u003c/p\u003e\n"]]],[],null,["# Pod metrics annotations details\n\n| You are currently viewing version 1.9 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\nOverview\n--------\n\n\nApigee hybrid uses the industry-standard Prometheus add-on for metrics collection. All\nApigee hybrid runtime plane applications expose an HTTP(s) endpoint that a\n[Prometheus](https://prometheus.io/)\nserver can scrape. The Metrics are formatted in\n[OpenCensus](https://opencensus.io/introduction/) format.\n\n\nYou can use your own metrics collection and reporting service, keeping in mind that\nApigee hybrid metrics are formatted in OpenCensus for scraping by a Prometheus server.\n\n\nThe following table lists port number and endpoint where hybrid exposes metrics for scraping for\neach runtime plane pods.\n\n### Example\n\n\nThe following example shows collecting metrics on the Runtime component from the command line: \n\n```\nkubectl -n apigee port-forward RUNTIME_POD_NAME 8843:8843\ncurl -k https://0:8843/v1/server/metrics?type=\"prometheus\"\n```"]]