Metrics
TPOSS exposes metrics on the /metrics/v1/values endpoint.
Metrics can be exported in two formats:
- JSON
- Prometheus
The metrics format depends on the value of the Accept header from the received request. It could be either application/json to export metrics in the JSON format or text/plain to export metrics in the Prometheus format. All the metrics described in this document are presented in the Prometheus formatOpens in a new tab.
TPOSS metrics are divided into the following groups:
- RADIUS
- Diameter
- HTTP API
- PCS sessions
- Database
- CCS Hooks
- OTP runtime
- Mnesia
- jemalloc
The following sections describe what kind of metrics are exposed for each group and what datapoints (or labels in Prometheus terms) are attached to the metrics. If there is no datapoint column or the datapoint value is empty this means:
- Promtheus metrics: no labels for the given metric
- JSON metrics: only default datapoint
valueis used.
To expose metrics, you can configure a ServiceMonitor using the following configuration parameters:
RADIUS metrics
TPOSS exposes the following RADIUS server metrics:
All RADIUS metrics contain special labels which allows for accumulating metrics data for different conditions, such as total number of RADIUS Accounting requests, mean time of RADIUS requests handling, and so on.
The following labels are present in the RADIUS metrics:
server_name- the name of a RADIUS serverserver_port- the port used by a RADIUS serverserver_ip- the IP address a RADIUS server listens for incoming RADIUS requestsnas_ip- the NAS IP address from which TPOSS receives RADIUS requestsnas_id- the NAS identifier from which TPOSS receives RADIUS requests
The le label of the radiusServRtt metric specifies the histogram bucket for the time taken to handle incoming RADIUS requests. Since the metric is represented as a Prometheus histogramOpens in a new tab, there are two additional associated metrics:
radiusServRtt_sum- total number of RADIUS requests taken into account by the histogramradiusServRtt_count- sum of round trip time periods taken into account by the histogram
The radiusServTotalAccountingRequests and radiusServTotalAccountingResponses metrics have the following additional label:
acct_type- type of RADIUS Accounting request. The possible values of this label arestart,update, andstop.
The radiusServTotalAccessRejects metric has the additional label reason. Its value represents the reason for the rejected RADIUS Access-Request. The label may have the following values:
not_authenticated- The subscriber is not authenticated by TPOSS.blocked_tariff- The subscriber has theblockedtariff.missed_mandatory_avp- Missing mandatory AVP in the incoming RADIUS Access-Request.database_issue- The database query failed with error.database_connection_issue- The database connection was closed during the execution of a query.database_busy- TPOSS does not have free database connections in the database connection pool.ip_pool_exhausted- No more IP addresses in the IP pool.ip_allocation_issue- Allocation of IP address failed because of database or TPOSS issues.duplicated_network_session- Network session for the given IMSI already exists at TPOSS.user_stat_update_issue- TPOSS failed to update user statistics when handling RADIUS Access-Request.lock_error- TPOSS failed to acquire a lock to handle incoming RADIUS requests.ccs_error- Charging handler failed to handle RADIUS Access-Request from TDF.internal_error- TPOSS handler crashed when handling the incoming RADIUS Access-Request.unknown- TPOSS rejected the RADIUS Access-Request by unknown reason.
RADIUS client metrics
TPOSS exposes the following RADIUS client metrics:
Each RADIUS client metric contains the following labels:
client_ip- the IP address used by TPOSS RADIUS client to send RADIUS requestsclient_name- the name of RADIUS client used by TPOSS to send RADIUS requestsserver_name- the RADIUS server name where TPOSS sends RADIUS requestsserver_ip- the RADIUS server IP address where TPOSS sends RADIUS requestsserver_port- the RADIUS server port where TPOSS sends RADIUS requests
Diameter metrics
TPOSS exposes the following Diameter metrics:
The type label specifies the type of the Diameter requests for a given protocol. The following types exist for the Diameter Gx and Gy requests:
initial- Diameter Gx and Gy initial requestsinterim- Diameter Gx and Gy update requestsstop- Diameter Gx and Gy termination requests
The following types exist for the Diameter NASREQ requests:
aar- Diameter NASREQ Authorization and Authentication requestsacr_start- Diameter NASREQ Accounting-Start requestsacr_interim- Diameter NASREQ Accounting-Interim-Update requestsacr_stop- Diameter NASREQ Accounting-Stopstr- Diameter NASREQ Session-Termination requests
The code label specifies the value of the Diameter Result-Code AVP.
The le label of the diameter_requests_rtt_milliseconds_bucket specifies the histogram bucket for the time taken to handle incoming Diameter requests. Since the metric is represented as a Prometheus histogramOpens in a new tab, there are two additional associated metrics:
diameter_requests_rtt_milliseconds_count- total number of Diameter requests taken into account by the histogramdiameter_requests_rtt_milliseconds_sum- sum of round trip time periods taken into account by the histogram
HTTP API metrics
TPOSS exposes the following HTTP API-related metrics:
The api_requests_rtt metric contains the le label that specifies the Prometheus histogram bucketOpens in a new tab for the time taken to handle incoming HTTP API requests. There are two additional metrics for the HTTP API handling time:
api_requests_rtt_count- total number of observations taken into account by the histogramapi_requests_rtt_sum- sum of time periods that TPOSS spent to handle HTTP API requests
PCS sessions metrics
TPOSS exposes the following PCS sessions metrics:
The sessions_GGSN metric labels are optional and depend on the value of the metrics.network_session_labels configuration option. If the value of the sessions.backend configuration option is set to mnesia, the metric does not have any labels. For more information, see the TPOSS ServiceMonitor and metrics configuration document.
Using the TPOSS chart, you can enable the PrometheusRule CR that provides two additional metrics:
sessions_network_total- provides the total number of network sessions (seesessions_GGSN)sessions_service_total- provides the total number of service sessions(seesessions_scg)
Read the Prometheus recording rules configuration to learn more.
Note
The rating_group_total counters are only available when diameter.enabled = true and session.backend = mysql are set.
If TPOSS is configured for the legacy setup only with RADIUS communication (diameter.enabled = false and session.backend = mnesia), the following metrics represent the number of sessions with the given Access-Class:
Database metrics
TPOSS exposes the following database metrics:
All non-histogram metrics do not have any labels. The histogram metrics contain the special le label. The value of this label specifies the histogram bucket.
CCS hooks metrics
TPOSS exposes the following CCS hooks-related metrics:
OTP runtime metrics
TPOSS exposes the following OTP runtime metrics:
The value of the datapoint label depends on the metric.
The runtime_garbage_collection metric may have the following datapoint values:
number_of_gcs- total number of garbage collections performed by a VMwords_reclaimed- total number of words reclaimed during garbage collections
The runtime_io metric may have the following datapoint values:
input- total number of bytes received by a VMoutput- total number of bytes sent by a VM
The runtime_ram metric may have the following datapoint values:
total- total number of bytes currently allocated by the underlying BEAM virtual machineprocesses- total number of bytes allocated for the processesprocesses_used- total number of bytes currently used by the processessystem- total number of bytes allocated by the underlying BEAM virtual machine for system purposesatom- total number of bytes allocated by the underlying BEAM virtual machine for atomsatom_used- total number of bytes currently used for atomsbinary- total number of bytes allocated by the underlying BEAM virtual machine for binariescode- total number of bytes allocated by the underlying BEAM virtual machine for codeets- total number of bytes allocated by the underlying BEAM virtual machine for ETS tables
The runtime_ports metric may have the following datapoint values:
port_count- number of ports currently existing at the TPOSS nodeport_limit- maximum number of simultaneously existing ports at the TPOSS node
The runtime_processes metric may have the following datapoint values:
process_count- number of processes launched by TPOSSprocess_limit- maximum number of processes that can be launched by TPOSSrun_queue_size- total length of all normal and dirty CPU run queues
The runtime_processors metric may have the following datapoint values:
logical_processors- detected number of logical processors configured in the systemlogical_processors_available- detected number of logical processors available to the TPOSS runtime system
CDM metrics
TPOSS exposes the following Cennso Data Mesh (CDM) metrics:
The le label of the cdm_requests_rtt metric specifies the histogram bucket for the time taken to handle CDM requests. Since the metric is represented as a Prometheus histogramOpens in a new tab, there are two additional associated metrics:
cdm_requests_rtt_count- total number of CDM requests taken into account by the histogram.cdm_requests_sum- sum of round trip time periods taken into account by the histogram.
Mnesia metrics
TPOSS exposes the following Mnesia metrics:
jemalloc metrics
The IP pools are built on top of a library that uses jemallocOpens in a new tab memory allocator. TPOSS provides the following metrics to get information about the memory allocated for IP pools:
Other metrics
The following metrics do not belong to any other category: