Beyla 导出的指标
下表描述了 OpenTelemetry 和 Prometheus 格式的导出指标。
系列 | 名称 (OTEL) | 名称 (Prometheus) | 类型 | 单位 | 描述 |
---|---|---|---|---|---|
应用程序 | http.client.request.duration | http_client_request_duration_seconds | 直方图 | 秒 | 从客户端发起的 HTTP 服务调用时长 |
应用程序 | http.client.request.body.size | http_client_request_body_size_bytes | 直方图 | 字节 | 客户端发送的 HTTP 请求体大小 |
应用程序 | http.client.response.body.size | http_client_response_body_size_bytes | 直方图 | 字节 | 客户端发送的 HTTP 响应体大小 |
应用程序 | http.server.request.duration | http_server_request_duration_seconds | 直方图 | 秒 | 从服务器端接收到的 HTTP 服务调用时长 |
应用程序 | http.server.request.body.size | http_server_request_body_size_bytes | 直方图 | 字节 | 服务器端接收到的 HTTP 请求体大小 |
应用程序 | http.server.response.body.size | http_server_response_body_size_bytes | 直方图 | 字节 | 服务器端接收到的 HTTP 响应体大小 |
应用程序 | rpc.client.duration | rpc_client_duration_seconds | 直方图 | 秒 | 从客户端发起的 GRPC 服务调用时长 |
应用程序 | rpc.server.duration | rpc_server_duration_seconds | 直方图 | 秒 | 从服务器端接收到的 RPC 服务调用时长 |
应用程序 | sql.client.duration | sql_client_duration_seconds | 直方图 | 秒 | SQL 客户端操作时长(实验性) |
应用程序 | redis.client.duration | redis_client_duration_seconds | 直方图 | 秒 | Redis 客户端操作时长(实验性) |
应用程序 | messaging.publish.duration | messaging_publish_duration | 直方图 | 秒 | 消息(Kafka)发布操作时长(实验性) |
应用程序 | messaging.process.duration | messaging_process_duration | 直方图 | 秒 | 消息(Kafka)处理操作时长(实验性) |
应用程序进程 | process.cpu.time | process_cpu_time_seconds_total | 计数器 | 秒 | 按不同状态(system/user/wait)划分的总 CPU 秒数 |
应用程序进程 | process.cpu.utilization | process_cpu_utilization_ratio | 仪表 | 比率 | `process.cpu.time` 自上次测量以来的差值,除以经过的时间和进程可用的 CPU 数量 |
应用程序进程 | process.memory.usage | process_memory_usage_bytes | 增减计数器 | 字节 | 正在使用的物理内存量 |
应用程序进程 | process.memory.virtual | process_memory_virtual_bytes | 增减计数器 | 字节 | 已提交的虚拟内存量 |
应用程序进程 | process.disk.io | process_disk_io_bytes_total | 计数器 | 字节 | 传输的磁盘字节数 |
应用程序进程 | process.network.io | process_network_io_bytes_total | 计数器 | 字节 | 传输的网络字节数 |
网络 | beyla.network.flow.bytes | beyla_network_flow_bytes | 计数器 | 字节 | 从源网络端点传输到目标网络端点的字节数 |
网络 | beyla.network.inter.zone.bytes | beyla_network_inter_zone_bytes | 计数器 | 字节 | 在集群中云可用区之间流动的字节数(实验性,目前仅在 Kubernetes 中可用) |
Beyla 还可以导出Span metrics和Service graph metrics,您可以通过features配置选项启用它们。
Beyla 指标的属性
为简洁起见,此列表中的指标和属性使用 OTEL 的 dot.notation
。使用 Prometheus 导出器时,指标使用 underscore_notation
。
要配置显示或隐藏哪些属性,请查看配置文档中的 attributes
->select
部分。
指标 | 名称 | 默认 |
---|---|---|
应用程序 (全部) | http.request.method | 显示 |
应用程序 (全部) | http.response.status_code | 显示 |
应用程序 (全部) | http.route | 如果 routes 配置部分存在则显示 |
应用程序 (全部) | k8s.daemonset.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.deployment.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.namespace.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.node.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.owner.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.pod.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.container.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.pod.start_time | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.pod.uid | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.replicaset.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.statefulset.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | k8s.cluster.name | 如果启用 Kubernetes 元数据则显示 |
应用程序 (全部) | service.name | 显示 |
应用程序 (全部) | service.namespace | 显示 |
应用程序 (全部) | target.instance | 显示 |
应用程序 (全部) | url.path | 隐藏 |
应用程序 (客户端) | server.address | 隐藏 |
应用程序 (客户端) | server.port | 隐藏 |
应用程序 (进程) | process.command | 如果启用进程指标则显示 |
应用程序 (进程) | process.command_args | 如果启用进程指标则显示 |
应用程序 (进程) | process.command_line | 如果启用进程指标则显示 |
应用程序 (进程) | process.executable.name | 如果启用进程指标则显示 |
应用程序 (进程) | process.executable.path | 如果启用进程指标则显示 |
应用程序 (进程) | process.owner | 如果启用进程指标则显示 |
应用程序 (进程) | process.parent_pid | 如果启用进程指标则显示 |
应用程序 (进程) | process.pid | 如果启用进程指标则显示 |
应用程序 `rpc.*` | rpc.grpc.status_code | 显示 |
应用程序 `rpc.*` | rpc.method | 显示 |
应用程序 `rpc.*` | rpc.system | 显示 |
应用程序 (服务器) | client.address | 隐藏 |
beyla.network.flow.bytes | beyla.ip | 隐藏 |
db.client.operation.duration | db.operation.name | 显示 |
db.client.operation.duration | db.collection.name | 隐藏 |
messaging.publish.duration | messaging.system | 显示 |
messaging.publish.duration | messaging.destination.name | 显示 |
messaging.process.duration | messaging.system | 显示 |
messaging.process.duration | messaging.destination.name | 显示 |
beyla.network.flow.bytes | client.port | 隐藏 |
beyla.network.flow.bytes | 方向 | 隐藏 |
beyla.network.flow.bytes | dst.address | 隐藏 |
beyla.network.flow.bytes | dst.cidr | 如果 cidrs 配置部分存在则显示 |
beyla.network.flow.bytes | dst.name | 隐藏 |
beyla.network.flow.bytes | dst.port | 隐藏 |
beyla.network.flow.bytes | dst.zone (仅限 Kubernetes) | 隐藏 |
beyla.network.flow.bytes | 接口 | 隐藏 |
beyla.network.flow.bytes | k8s.cluster.name | 如果启用 Kubernetes 则显示 |
beyla.network.flow.bytes | k8s.dst.name | 隐藏 |
beyla.network.flow.bytes | k8s.dst.namespace | 如果启用 Kubernetes 则显示 |
beyla.network.flow.bytes | k8s.dst.node.ip | 隐藏 |
beyla.network.flow.bytes | k8s.dst.node.name | 隐藏 |
beyla.network.flow.bytes | k8s.dst.owner.type | 隐藏 |
beyla.network.flow.bytes | k8s.dst.type | 隐藏 |
beyla.network.flow.bytes | k8s.dst.owner.name | 如果启用 Kubernetes 则显示 |
beyla.network.flow.bytes | k8s.src.name | 隐藏 |
beyla.network.flow.bytes | k8s.src.namespace | 如果启用 Kubernetes 则显示 |
beyla.network.flow.bytes | k8s.src.node.ip | 隐藏 |
beyla.network.flow.bytes | k8s.src.owner.name | 如果启用 Kubernetes 则显示 |
beyla.network.flow.bytes | k8s.src.owner.type | 隐藏 |
beyla.network.flow.bytes | k8s.src.type | 隐藏 |
beyla.network.flow.bytes | server.port | 隐藏 |
beyla.network.flow.bytes | src.address | 隐藏 |
beyla.network.flow.bytes | src.cidr | 如果 cidrs 配置部分存在则显示 |
beyla.network.flow.bytes | src.name | 隐藏 |
beyla.network.flow.bytes | src.port | 隐藏 |
beyla.network.flow.bytes | src.zone (仅限 Kubernetes) | 隐藏 |
beyla.network.flow.bytes | 传输 | 隐藏 |
跟踪 (SQL, Redis) | db.query.text | 隐藏 |
注意
beyla.network.inter.zone.bytes
指标支持与beyla.network.flow.bytes
相同的属性集,但除k8s.cluster.name
、src.zone
和dst.zone
外,所有属性默认隐藏。
内部指标
可以将 Beyla 配置为报告内部指标,格式为 Prometheus。
名称 | 类型 | 描述 |
---|---|---|
beyla_ebpf_tracer_flushes | 直方图 | 从 eBPF 跟踪器刷新到下一个管道阶段的跟踪组长度 |
beyla_otel_metric_exports_total | 计数器 | 提交到远程 OTEL collector 的指标批次长度 |
beyla_otel_metric_export_errors_total | 计数器向量 (CounterVec) | 按错误类型分类的每个失败 OTEL 指标导出的错误计数 |
beyla_otel_trace_exports_total | 计数器 | 提交到远程 OTEL collector 的跟踪批次长度 |
beyla_otel_trace_export_errors_total | 计数器向量 (CounterVec) | 按错误类型分类的每个失败 OTEL 跟踪导出的错误计数 |
beyla_prometheus_http_requests_total | 计数器向量 (CounterVec) | 按 HTTP 端口和路径分类的对 Prometheus Scrape 端点的请求数量 |
beyla_instrumented_processes | 仪表向量 (GaugeVec) | Beyla 检测的进程,包含进程名称 |
beyla_internal_build_info | 仪表向量 (GaugeVec) | Beyla 二进制文件的版本信息,包括构建时间和提交哈希 |