10.2. 网络 Observability 指标
查看网络可观察性指标的完整列表,它们以 netobserv_ 前缀,您可以在 FlowCollector 资源中配置该指标,并用来监控流量并创建 Prometheus 警报。
flowlogs-pipeline 生成的指标可在 FlowCollector 自定义资源的 spec.processor.metrics.includeList 中进行配置,以添加或删除指标。
您还可以使用 Prometheus 规则中的 includeList 指标创建警报,如"创建警报"所示。
在 Prometheus 中查找这些指标时,如通过 Observe netobserv_ 前缀。例如 netobserv_namespace_flows_total。可用的指标名称如下:
- includeList 指标名称
默认情况下启用带有星号
*的名称。-
namespace_egress_bytes_total -
namespace_egress_packets_total -
namespace_ingress_bytes_total -
namespace_ingress_packets_total -
namespace_flows_total* -
node_egress_bytes_total -
node_egress_packets_total -
node_ingress_bytes_total* -
node_ingress_packets_total -
node_flows_total -
workload_egress_bytes_total -
workload_egress_packets_total -
workload_ingress_bytes_total* -
workload_ingress_packets_total -
workload_flows_total
-
- PacketDrop 指标名称
当在
spec.agent.ebpf.features(具有privileged模式)中启用PacketDrop功能时,可以使用以下额外的指标:-
namespace_drop_bytes_total -
namespace_drop_packets_total* -
node_drop_bytes_total -
node_drop_packets_total -
workload_drop_bytes_total -
workload_drop_packets_total
-
- DNS 指标名称
当在
spec.agent.ebpf.features中启用了DNSTracking功能时,可以使用以下额外的指标:-
namespace_dns_latency_seconds* -
node_dns_latency_seconds -
workload_dns_latency_seconds
-
- FlowRTT 指标名称
当在
spec.agent.ebpf.features中启用FlowRTT功能时,可以使用以下额外指标:-
namespace_rtt_seconds* -
node_rtt_seconds -
workload_rtt_seconds
-