> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/2.9/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/fpp/2.9/metrics.md).

# Metrics

Fast Path Provider (FPP) exposes metrics in the Prometheus format on the `/metrics` endpoint on port `9482`.

The following metrics are available:

| Name | Type | Description |
|:---|:---|:---|
| vpp_arp_hw_addr_not_match_l2_frame | COUNTER | Number of ARP errors indicating that the frame L2 source address doesn't match the HW address. Example: `vpp_arp_hw_addr_not_match_l2_frame{node="arp-reply"} 0`
| vpp_arp_replies_sent | COUNTER | Number of ARP replies sent by the dedicated VPP node. Example: `vpp_arp_replies_sent{node="arp-reply"} 1`
| vpp_arp_requests_sent | COUNTER | Number of ARP requests sent by the dedicated VPP node. Example: `vpp_arp_requests_sent{node="ip4-arp"} 1`
| vpp_buffer_pools_available | GAUGE | Number of VPP buffers that are not used. Example: `vpp_buffer_pools_available{numa="default-numa-0"} 251935`, where `numa` is a name from which NUMA node this metric is
| vpp_buffer_pools_cached | GAUGE | Number of VPP buffers that are cached. Example: `vpp_buffer_pools_cached{numa="default-numa-0"} 0`
| vpp_buffer_pools_used | GAUGE | Number of used VPP buffers. Example: `vpp_buffer_pools_used{numa="default-numa-0"} 4097`
| vpp_interface_bytes | COUNTER | Bytes processed by interface RX and TX queues. Example: `vpp_interface_bytes{name="sgi0",type="tx"} 42`, where `name` is a VPP interface name, and `type` is either `rx` or `tx`
| vpp_interface_errors | COUNTER | VPP device errors for each interface. Example: `vpp_interface_errors{name="sgi0", type="interface_is_down"} 10`, where `name` is a VPP interface name, and `type` is one of: `interface_is_down`, `bond_traffic_on_passive`, `bond_pass_through`, `no_buffer_gso`, `memif_no_enough_space_tx_buffers`, `tap_truncated_tx_ring`, `tap_pending_msgs_tx_ring`, `tap_indirect_desc_alloc_failed`, `tap_ooo_buffers_in_ring`, `tap_gso_disabled_drop`, `tap_chcksm_offload_disabled`, `dpdk_tx_function_error`, `dpdk_tx_packet_drop`
| vpp_interface_info | GAUGE | VPP interface information. Example: `vpp_interface_info{ip_addr="172.18.1.2",is_ipv4="1",is_ipv6="0",l3mtu="9000",mac_addr="fa:8a:78:4d:5b:5b",name="sxb",uplink="IF_STATUS_API_FLAG_ADMIN_UP\|IF_STATUS_API_FLAG_LINK_UP"} 1`
| vpp_interface_no_tx_slots | COUNTER | Number of packets dropped by the interface due to no TX slots available. Example: `vpp_interface_no_tx_slots{name="tap0"} 0`, where `name` is a VPP interface name
| vpp_interface_packets | COUNTER | Packets processed by interface RX and TX queues. Example: `vpp_interface_packets{name="sgi0",type="rx"} 19`, where `name` is a VPP interface name, and `type` is either `rx` or `tx`
| vpp_main_heap_free_bytes | GAUGE | Number of bytes free for the heap memory segment. Example: `vpp_main_heap_free_bytes 123`
| vpp_main_heap_total_bytes | GAUGE | Size of the heap memory segment. Example: `vpp_main_heap_total_bytes 123`
| vpp_main_heap_used_bytes | GAUGE | Number of bytes used from the heap memory segment. Example: `vpp_main_heap_used_bytes 123`
| vpp_memcap_streams_created | GAUGE | Number of MEMCAP streams created. Example: `vpp_memcap_streams_created 1` |
| vpp_memcap_dropped_packets_total | COUNTER | Number of packets dropped because of the reason provided in the label. Example: `vpp_memcap_dropped_packets_total{reason="ring-overflow"} 123` where reason is one of: `ring-overflow` - if MEMCAP-sink process slow to collect packets, `stream-stopped` - if stream in stopped state |
| vpp_nat_flow_count | GAUGE | Number of NAT flows. Example: `vpp_nat_flow_count{index="0",thread="0"} 123`
| vpp_max_nat_flows | GAUGE | Maximum number of NAT flows. Example: `vpp_max_nat_flows 10000000`
| vpp_nat_max_flows_exceeded | COUNTER | Number of NAT translations that can't be created due to the maximum number of flows  per NAT node is reached. Example: `vpp_nat_max_flows_exceeded{node="nat44-ed-in2out-slowpath"} 123`
| vpp_nat_out_of_ports | COUNTER | Number of NAT Flows can't be created because of tranlsation port can not be allocated. Example: `vpp_nat_out_of_ports{node="nat44-ed-in2out-slowpath"} 123`
| vpp_node_calls | COUNTER | Number of calls for the defined VPP nodes. Example: `vpp_node_calls{name="tcp4-established"} 0`, where `name` is a [VPP node name](#vpp-node-names)
| vpp_node_clocks | COUNTER | Number of clock cycles used by the defined VPP nodes. Example: `vpp_node_clocks{name="tcp4-established"}`, where `name` is a [VPP node name](#vpp-node-names)
| vpp_node_suspends | COUNTER | Number of suspends for the defined VPP nodes. Example: `vpp_node_suspends{name="tcp4-established"} 0`, where `name` is a [VPP node name](#vpp-node-names)
| vpp_node_vectors | COUNTER | Number of vectors processed by the defined VPP node. Example: `vpp_node_vectors{name="tcp4-established"} 0`, where `name` is a [VPP node name](#vpp-node-names)
| vpp_stat_seg_free_bytes | GAUGE | Number of bytes free for the Stats memory segment. Example: `vpp_stat_seg_free_bytes 123`
| vpp_stat_seg_total_bytes | GAUGE | Size of the Stats memory segment. Example: `vpp_stat_seg_total_bytes 123`
| vpp_stat_seg_used_bytes | GAUGE | Number of bytes used from the Stats memory segment. Example: `vpp_stat_seg_used_bytes 123`
| vpp_sys_vector_rate | GAUGE | Average length of packet vector. Example: `vpp_sys_vector_rate 1`
| vpp_sys_vector_rate_per_worker | GAUGE | Average length of each worker's packet vector. Example: `vpp_sys_vector_rate_per_worker{index="0",thread="0"} 1`
| vpp_sys_loops_per_second | GAUGE | Number of VPP worker loop cycles per second per worker. Example: `vpp_sys_loops_per_second{index="0",thread="0"} 1`

## Labels

Each metric from the table above has the following list of labels attached:

- `cka=fpp` - label for all FPP metrics
- `container="fpp"` - metric from the `fpp` container
- `endpoint="prom-metrics"` - label for all FPP metrics
- `instance="{IP}:9482"` - `{IP}` is a Kubernetes IP of the FPP pod
- `job="{fpp_deploy}"` - name of the FPP DaemonSet
- `namespace="{fpp_ns}"` - name of the namespace where the FPP pod is deployed
- `nodename="{node_name}"` - full name of the node where the FPP pod is working, for example: `worker.cennso.net`
- `pod="{fpp_pod}"` - the name of the FPP pod
- `service="{fpp_deploy}"` - name of the FPP DaemonSet
- `short_nodename="{shot_name}"` - short name of the FPP pod host, for example: `worker-01`

The `vpp_sys_vector_rate_per_worker` and `vpp_sys_loops_per_second` metrics have attached labels that specify which specific `thread` and `index` those metrics describe.

## VPP node names

FPP exposes metrics with the following VPP node names:

- `drop`
- `tcp4-established`
- `upf-ip4-classify`
- `upf-ip4-input`
- `upf-ip4-proxy-input`
- `upf-ip4-session-dpo`
