Métricas exportadas por OBI

Obtener información sobre las métricas HTTP/gRPC que OBI puede exportar.

The content of this page may be outdated and some links may be invalid. A newer version of this page exists in English.

More information ...

To see the changes to the English page since this page was last updated: visit GitHub compare f7cb8b65..c6df1ca9 and search for content/en/docs/zero-code/obi/metrics.md.

La siguiente tabla describe las métricas exportadas tanto en formato OpenTelemetry como en formato Prometheus.

FamilyName (OTel)Name (Prometheus)TypeUnitDescription
Applicationhttp.client.request.durationhttp_client_request_duration_secondsHistogramsecondsDuration of HTTP service calls from the client side
Applicationhttp.client.request.body.sizehttp_client_request_body_size_bytesHistogrambytesSize of the HTTP request body as sent by the client
Applicationhttp.client.response.body.sizehttp_client_response_body_size_bytesHistogrambytesSize of the HTTP response body as sent by the client
Applicationhttp.server.request.durationhttp_server_request_duration_secondsHistogramsecondsDuration of HTTP service calls from the server side
Applicationhttp.server.request.body.sizehttp_server_request_body_size_bytesHistogrambytesSize of the HTTP request body as received at the server side
Applicationhttp.server.response.body.sizehttp_server_response_body_size_bytesHistogrambytesSize of the HTTP response body as received at the server side
Applicationrpc.client.durationrpc_client_duration_secondsHistogramsecondsDuration of gRPC service calls from the client side
Applicationrpc.server.durationrpc_server_duration_secondsHistogramsecondsDuration of RPC service calls from the server side
Applicationsql.client.durationsql_client_duration_secondsHistogramsecondsDuration of SQL client operations (Experimental)
Applicationredis.client.durationredis_client_duration_secondsHistogramsecondsDuration of Redis client operations (Experimental)
Applicationmessaging.publish.durationmessaging_publish_durationHistogramsecondsDuration of Messaging (Kafka) publish operations (Experimental)
Applicationmessaging.process.durationmessaging_process_durationHistogramsecondsDuration of Messaging (Kafka) process operations (Experimental)
Networkobi.network.flow.bytesobi_network_flow_bytesCounterbytesBytes submitted from a source network endpoint to a destination network endpoint
Networkobi.network.inter.zone.bytesobi_network_inter_zone_bytesCounterbytesBytes flowing between cloud availability zones in your cluster (Experimental, currently only available in Kubernetes)

OBI también puede exportar métricas de Span y métricas de gráficos de servicio, que se pueden habilitar mediante la opción de configuración features.

Atributos de las métricas OBI

En pro de la brevedad, las métricas y los atributos de esta lista utilizan la notación OTel «dot.notation». Cuando se utiliza el exportador Prometheus, las métricas utilizan la notación «underscore_notation».

Para configurar qué atributos mostrar u ocultar, consulta la sección attributes->select en la documentación de configuración.

MétricaNombreDefecto
Application (all)http.request.methodVisible
Application (all)http.response.status_codese Visible
Application (all)http.routeSe muestra si existe la sección de configuración routes
Application (all)k8s.daemonset.nameSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.deployment.namesSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.namespace.nameSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.node.nameSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.owner.nameSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.pod.nameSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.container.nameSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.pod.start_timeSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.pod.uidSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.replicaset.nameSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.statefulset.nameSe muestra si los metadatos de Kubernetes están habilitados
Application (all)k8s.cluster.nameSe muestra si los metadatos de Kubernetes están habilitados
Application (all)service.nameVisible
Application (all)service.namespaceVisible
Application (all)target.instancesVisible
Application (all)url.pathOculto
Application (client)server.addressOculto
Application (client)server.portOculto
Application rpc.*rpc.grpc.status_codeVisible
Application rpc.*rpc.methodVisible
Application rpc.*rpc.systemVisible
Application (server)client.addressOculto
obi.network.flow.bytesobi.ipOculto
db.client.operation.durationdb.operation.nameVisible
db.client.operation.durationdb.collection.nameOculto
messaging.publish.durationmessaging.systemVisible
messaging.publish.durationmessaging.destination.nameVisible
messaging.process.durationmessaging.systemVisible
messaging.process.durationmessaging.destination.nameVisible
obi.network.flow.bytesclient.portOculto
obi.network.flow.bytesdirectionOculto
obi.network.flow.bytesdst.addressOculto
obi.network.flow.bytesdst.cidrSe muestra si existe la sección de configuración cidrs.
obi.network.flow.bytesdst.nameOculto
obi.network.flow.bytesdst.portOculto
obi.network.flow.bytesdst.zone (solo Kubernetes)Oculto
obi.network.flow.bytesifaceOculto
obi.network.flow.bytesk8s.cluster.nameSe muestra si Kubernetes está habilita
obi.network.flow.bytesk8s.dst.nameOculto
obi.network.flow.bytesk8s.dst.namespaceSe muestra si Kubernetes está habilitado
obi.network.flow.bytesk8s.dst.node.ipOculto
obi.network.flow.bytesk8s.dst.node.nameOculto
obi.network.flow.bytesk8s.dst.owner.typeOculto
obi.network.flow.bytesk8s.dst.typeOculto
obi.network.flow.bytesk8s.dst.owner.nameSe muestra si Kubernetes está habilitado.
obi.network.flow.bytesk8s.src.nameOculto
obi.network.flow.bytesk8s.src.namespaceSe muestra si Kubernetes está habilitado.
obi.network.flow.bytesk8s.src.node.ipOculto
obi.network.flow.bytesk8s.src.owner.nameSe muestra si Kubernetes está habilitado.
obi.network.flow.bytesk8s.src.owner.typeOculto
obi.network.flow.bytesk8s.src.typeOculto
obi.network.flow.bytesserver.portOculto
obi.network.flow.bytessrc.addressOculto
obi.network.flow.bytessrc.cidrSe muestra si existe la sección de configuración cidrs.
obi.network.flow.bytessrc.nameOculto
obi.network.flow.bytessrc.portOculto
obi.network.flow.bytessrc.zone (solo Kubernetes)Oculto
obi.network.flow.bytestransportOculto
Traces (SQL, Redis)db.query.textOculto

Métricas internas

OBI se puede configurar para informar de métricas internas en formato Prometheus.

NombreTipoDescripción
obi_ebpf_tracer_flushesHistogramaLongitud de los grupos de trazas enviadas desde el rastreador eBPF a la siguiente etapa del proceso.
obi_metric_exports_totalCounterLongitud de los batches métricos enviados al recolector OTel remoto
obi_metric_export_errors_totalCounterVecRecuento de errores en cada exportación fallida de métricas OTel, por tipo de error
obi_trace_exports_totalCounterLongitud de los lotes de trazado enviados al recolector OTel remoto
obi_trace_export_errors_totalCounterVecRecuento de errores en cada exportación fallida de trazas OTel, por tipo de error
obi_prometheus_http_requests_totalCounterVecNúmero de solicitudes al endpoint de Prometheus Scrape, filtradas por puerto HTTP y ruta
obi_instrumented_processesGaugeVecProcesos instrumentados por OBI, con nombre del proceso
obi_internal_build_infoGaugeVecInformación sobre la versión del binario OBI, incluyendo la hora de compilación y el hash de confirmación

Última modificación October 9, 2025: [i18n] Add drifted status (#8045) (171db5c0)