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

# Metrics

SMC exposes metrics in Prometheus format on the `/metrics` endpoint on port `8000`.

## GTP path

| Name | Type | Description |
|:--- |:---|:---|
| gtp_path_rtt_milliseconds | HISTOGRAM | GTP path round trip time. **Buckets**: 10, 30, 50, 75, 100, 1000, 2000]. **Labels**: `name`: socket name, `ip`: remote IP, `version`: `v1 \| v2`, `type`: GTP message type. |
| gtp_path_messages_processed_total | COUNTER | Total number of GTP message processed on path. **Labels**: `name`: socket name, `remote`: remote IP, `direction`: `rx \| tx`, `version`: `v1 \| v2`, `type`: GTP message type. |
| gtp_path_messages_duplicates_total | COUNTER | Total number of duplicate GTP message received on path. **Labels**: `name`: socket name, `remote`: remote IP, `version`: `v1 \| v2`, `type`: GTP message type. |
| gtp_path_messages_retransmits_total | COUNTER | Total number of retransmited GTP message on path. **Labels**: `name`: socket name, `remote`: remote IP, `version`: `v1 \| v2`, `type`: GTP message type. |
| gtp_path_messages_timeouts_total | COUNTER | Total number of timed out GTP message on path. **Labels**: `name`: socket name, `remote`: remote IP, `version`: `v1 \| v2`, `type`: GTP message type. |
| gtp_path_contexts_total | GAUGE | Total number of GTP contexts on path. **Labels**: `name`: socket name, `ip`: remote IP, `version`: `v1 \| v2` |

## GTP-C socket specific

| Name | Type | Description |
|:---|:---|:---|
| gtp_c_socket_request_duration_microseconds | HISTOGRAM | GTP Request execution time. **Buckets**: 100, 300, 500, 750, 1000. **Labels**: `name`: socket name, `version`: `v1 \| v2`, `type`: GTP message type |
| gtp_c_socket_messages_processed_total | COUNTER | Total number of GTP message processed on socket. **Labels**: `name`: socket name, `direction`: `rx \| tx`, `version`: `v1 \| v2`, `type`: GTP message type. |
| gtp_c_socket_messages_duplicates_total | COUNTER | Total number of duplicate GTP message received on socket. **Labels**: `name`: socket name, `version`: `v1 \| v2`, `type`: GTP message type. |
| gtp_c_socket_messages_retransmits_total | COUNTER | Total number of retransmited GTP message on socket. **Labels**: `name`: socket name, `version`: `v1 \| v2`, `type`: GTP message type. |
| gtp_c_socket_messages_timeouts_total | COUNTER | Total number of timed out GTP message on socket. **Labels**: `name`: socket name, `version`: `v1 \| v2`, `type`: GTP message type. |
| gtp_c_socket_messages_replies_total | COUNTER | Total number of reply GTP message on socket. **Labels**: `name`: socket name, `direction`: `rx \| tx`, `version`: `v1 \| v2`, `type`: GTP message type, `result`: GTP Cause IE. |
| gtp_c_socket_errors_total | COUNTER | Total number of GTP errors on socket. **Labels**: `name`: socket name, `direction`: `rx \| tx`, `error`: `malformed-requests \| version-not-supported`. |

## GTP-U socket specific

| Name | Type | Description |
|:---|:---|:---|
| gtp_u_socket_messages_processed_total | COUNTER | Total number of GTP message processed on socket. **Labels**: `name`: socket name, `direction`: `rx \| tx`, `version`: `v1 \| v2`, `type`: GTP message type. |

## Sx PFCP

| Name | Type | Description |
|:---|:---|:---|
| pfcp_messages_processed_total | COUNTER | Total number of PFCP message processed. **Labels**: `name`: socket name, `remote`: remote IP, `direction`: `rx \| tx`, `type`: PFCP message type. |
| pfcp_messages_duplicates_total | COUNTER | Total number of duplicate PFCP message received. **Labels**: `name`: socket name, `remote`: remote IP, `type`: PFCP message type. |
| pfcp_messages_retransmits_total | COUNTER | Total number of retransmited PFCP message. **Labels**: `name`: socket name, `remote`: remote IP, `type`: PFCP message type. |
| pfcp_messages_timeouts_total | COUNTER | Total number of timed out PFCP message. **Labels**: `name`: socket name, `remote`: remote IP, `type`: PFCP message type. |
| pfcp_messages_replies_total | COUNTER | Total number of reply PFCP message. **Labels**: `name`: socket name, `remote`: remote IP, `direction`: `rx \| tx`, `type`: PFCP message type, `result`: PFCP Cause IE. |
| pfcp_errors_total | COUNTER | Total number of PFCP errors. **Labels**: `name`: socket name, `remote`: remote IP, `direction`: `rx \| tx`, `type`: PFCP message type. |
| pfcp_peer_response_milliseconds | HISTOGRAM | PFCP round trip time. **Buckets**: 100, 300, 500, 750, 1000. **Labels**: `name`: socket name, `version`: `v1`, `type`: PFCP message type. |
| pfcp_request_duration_microseconds | HISTOGRAM | PFCP Request execution time. **Buckets**: 100, 300, 500, 750, 1000. **Labels**: `name`: socket name, `version`: `v1`, `type`: PFCP message type. |
| pfcp_sx_association_total | GAUGE | Total amount of associated GTP-U instances. **Labels**: `state`: `up`. |
| pfcp_sx_context_total | GAUGE | Total number of Sx session contexts. **Labels**: `name`: socket name. |

## Termination cause

| Name | Type | Description |
|:---|:---|:---|
| termination_cause_total | COUNTER | Total number of termination causes. **Labels**: `api`: `gn/gp \| s5/s8 \| s11 \| tdf`, `cause`: termination cause. |

## IP Pool

| Name | Type | Description |
|:---|:---|:---|
| ergw_local_pool_free | GAUGE | Total number of free addresses. **Labels**: `name`: pool name, `type`: `ipv4 \| ipv6`, `id`: start address of the pool. |
| ergw_local_pool_used | GAUGE | Total number of used addresses. **Labels**: `name`: pool name, `type`: `ipv4 \| ipv6`, `id`: start address of the pool. |

## Diameter metrics

Diameter metrics from the open source `ergw_aaa` library and the Erlang/OTP DIAMETER application are also exposed. More information about the `ergw_aaa` metrics can be found [here](https://github.com/travelping/ergw_aaa/blob/master/doc/METRICS.md) and for the Erlang/OTP DIAMETER application can be found [here](https://github.com/travelping/prometheus_diameter_collector/blob/master/README.md#metrics)

## RADIUS metrics

RADIUS metrics from the open source `eradius` library are also exposed. More information about these metrics can be found [here](https://github.com/travelping/eradius/blob/master/METRICS.md).

## Erlang VM metrics

In addition to the aforementioned metrics, Erlang VM specific metrics are
exposed. See https://github.com/deadtrickster/prometheus.erl#erlang-vm--otp-collectors
to get the documentation of the various collectors.
