For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Metrics

UPG exposes metrics on the /metrics endpoint on port 9482.

UPG exposes all metrics that are present in FPP Manager, and extends it with the following UPG-specific metrics:

Labels

All UPG metrics (FPP and UPG-specific) have the following list of labels attached:

  • apn="{APN}" - APN name added with a UPGDeployment
  • cnf="upg" - label for all UPG metrics
  • endpoint="prom-metrics" - label for all UPG metrics
  • instance="{IP}:9482" - {IP} is a Kubernetes IP of the UPG pod
  • job="{upg_deploy}" - the name of the UPG deployment
  • namespace="{upg_ns}" - the name of the namespace where the UPG pod is deployed
  • nf_instance="{upg_instance}" - the name of the UPG instance pod, which depends on the UPGDeployment configuration
  • pod="{upg_pod}" - the name of the UPG pod
  • release="{upg_name}" - the name of the UPGDeployment of UPG
  • service="{upg_deploy}" - the name of the UPG deployment

Pool-related metrics have a label name that denotes the pool this metric is tracking. Those metrics are tracked in items, instead of bytes, and each pool has its own item size depending on the underlying structure held in the pool.

PFCP metric labels

The vpp_pfcp_packets_total metric contains the type, status, and direction labels. Together, they can represent a wide range of packet processing events.

The type label may contain one of the following values:

  • association_setup_request
  • association_setup_response
  • heartbeat_request
  • heartbeat_response
  • session_deletion_request
  • session_deletion_response
  • session_establishment_request
  • session_establishment_response
  • session_modification_request
  • session_modification_response
  • session_report_request
  • session_report_response

The status and direction values combinations are like this:

CG-NAT metric labels

UPG CG-NAT-specific metrics are available with NAT pool statistics. These metrics are identified by the name label, which contains the NAT pool name.

  • vpp_nat_pool_info and vpp_nat_pool_block_size show the configured NAT pool interface and block size.
  • vpp_nat_pool_utilization and vpp_nat_pool_capacity show the usage of NAT pool blocks.
  • vpp_nat_pool_bytes_total and vpp_nat_pool_packets_total provide NAT pool traffic statistics, with the direction label indicating i2o (inbound to outbound) or o2i (outbound to inbound) direction.
  • vpp_nat_pool_flow_count provides the number of flows created, with the type label showing whether it's a tcpudp or icmp flow.

The vpp_nat_errors_total metric tracks error events that usually result in packet drops. Typical combinations of node and error values are explained in this table: