> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/upg/2.2/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/upg/2.2/metrics.md).

# 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:

| Name | Type | Description |
|:---|:---|:---|
| vpp_nat_pool_block_size | GAUGE | Block size of the NAT Pool. Example: `vpp_nat_pool_block_size{name="testing",network_instance="sgi"} 512`
| vpp_nat_pool_capacity | GAUGE | Capacity of the NAT Pool. Example: `vpp_nat_pool_capacity{name="testing",network_instance="sgi"} 4305`
| vpp_nat_pool_info | GAUGE | Name of the CG-NAT Pool and Network Instance. Example: `vpp_nat_pool_info{name="testing",network_instance="sgi"} 1`
| vpp_nat_pool_utilization | GAUGE | Utilization of the NAT Pool. Example: `vpp_nat_pool_utilization{name="testing",network_instance="sgi"} 0`
| vpp_upf_flow_count | GAUGE | Total number of flows in UPF. Example: `vpp_upf_flow_count 123`
| vpp_upf_mss_mismatch | COUNTER | Number of flows in UPF that can not be stitched from proxy due to the MSS mismatch. Example:  `vpp_upf_mss_mismatch 212`
| vpp_upf_stitched_dirty_fifos | COUNTER | Number of flows in UPF that stitched but transport connection is not yet flushed. Example:  `vpp_upf_stitched_dirty_fifos 3890`
| vpp_upf_tcp_ops_tstamp | COUNTER | Number of flows in UPF that can not be stitched from proxy due to the mismatch of the TCP Timestamp option. Example: `vpp_upf_tcp_ops_tstamp 512`
| vpp_upf_tcp_sack_permit | COUNTER | Number of flows in UPF that can not be stitched from proxy due the TCP Sack Permitted option. Example:  `vpp_upf_tcp_sack_permit  0`
| vpp_upf_total_associations | GAUGE | Total number of UPF associations. Example: `vpp_upf_total_associations 123`
| vpp_upf_total_sessions | GAUGE | Total number of UPF sessions. Example: `vpp_upf_total_sessions 123`
| vpp_upf_total_stitched | COUNTER | Total number of flows in UPF stitched from proxy. Example: `vpp_upf_total_stitched 8989`

## Labels

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

- `apn="{APN}"` - APN name added with a Helm deployment
- `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}"` - name of the UPG deployment
- `namespace="{upg_ns}"` - name of the namespace where the UPG pod is deployed
- `nf_instance="{upg_instance}"` - name of the UPG instance pod, which depends on the Helm chart deployment configuration
- `pod="{upg_pod}"` - name of the UPG pod
- `release="{upg_name}"` - name of the Helm chart deployment of UPG
- `service="{upg_deploy}"` - name of the UPG deployment
