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.

You are reading Travelping Open Subscriber Server 6.19, an older release. The newest release is 6.20. Read this page in 6.20

Metrics

TPOSS exposes a rich set of metrics. You can fetch metrics by sending an HTTP request to access the {HOST}:{PORT}/metrics/v1/values HTTP endpoint. The {HOST} is configured using the tposs_http_api.host configuration option. The {PORT} is configured using the tposs_http_api.port configuration option.

You can export metrics in two formats:

  • JSON
  • Prometheus

The metrics format depends on the value of the AcceptOpens in a new tab header from the received request. The value of the Accept header can 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.

To discover a Kubernetes serviceOpens in a new tab that you can use to access metrics, configure a ServiceMonitorOpens in a new tab using the following configuration parameters:

yaml

The following sections describe metrics and their datapoints (or labels, in Prometheus terms). If there is no datapoint column or the datapoint value is empty, this means:

  • Prometheus metrics: no labels for the given metric
  • JSON metrics: only the default datapoint value is used

RADIUS server metrics

TPOSS exposes the following RADIUS server metrics:

Common labels for RADIUS server metrics

All RADIUS metrics include common labels. This allows for accumulating metrics data for different conditions, such as the total number of RADIUS Accounting requests for the given RADIUS server, the mean time of RADIUS requests arriving at the given RADIUS server, and so on.

The following labels are present in the RADIUS metrics:

  • server_name - the name of a RADIUS server
  • server_port - the port used by a RADIUS server
  • server_ip - the IP address a RADIUS server listens for incoming RADIUS requests
  • nas_ip - the NAS IP address from which TPOSS receives RADIUS requests
  • nas_id - the NAS identifier from which TPOSS receives RADIUS requests

The format of the nas_id label depends on the RADIUS configuration. As described in the RADIUS settings, each RADIUS server must define a list of sources from where RADIUS requests are accepted. Each source may have an optional definition of a NAS identifier, like proxy in the example below:

yaml

If the NAS identifier is specified in the RADIUS source configuration, it is used as the value of the nas_id label. If the NAS identifier is not specified, the value of the nas_id label is formed by joining the handler string, the IP source address from which the RADIUS request was received, and the auth or acct string.

For example, the value of the nas_id label for the following configuration could be radiusServAcctUpdateRequests{nas_id="auth_192.0.2.0"}:

yaml

Labels for RADIUS histogram metrics

The le label of the radiusServRtt metric is the time value that shows how many RADIUS requests were handled in that time or less. The label and value are translated into Prometheus histogram buckets and are provided in milliseconds. 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 histogram
  • radiusServRtt_count - sum of round trip time periods taken into account by the histogram

Additional labels for RADIUS Accounting metrics

Besides the common labels, the radiusServTotalAccountingRequests and radiusServTotalAccountingResponses metrics have the additional label - acct_type. This label provides information about the type of a RADIUS Accounting request. The possible values of this label are:

  • start
  • update
  • stop

Additional labels for RADIUS Access-Reject metrics

In addition to common labels, 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 the blocked tariff.
  • 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 requests
  • client_name - the name of RADIUS client used by TPOSS to send RADIUS requests
  • server_name - the RADIUS server name where TPOSS sends RADIUS requests
  • server_ip - the RADIUS server IP address where TPOSS sends RADIUS requests
  • server_port - the RADIUS server port where TPOSS sends RADIUS requests

Diameter metrics

TPOSS exposes the following Diameter metrics:

TPOSS exposes Diameter metrics with different labels. Each metric related to a Diameter response has the code label. The code label specifies the value of the Diameter Result-Code AVP.

For all metrics except diameter_if_requests_rtt_milliseconds, the type label specifies the type of the Diameter requests for a given protocol.

Diameter Gx/Gy request types

The following types exist for the Diameter Gx and Gy requests:

  • initial - Diameter Gx and Gy initial requests
  • interim - Diameter Gx and Gy update requests
  • stop - Diameter Gx and Gy termination requests

Diameter NASREQ request types

The following types exist for the Diameter NASREQ requests:

  • aar - Diameter NASREQ Authorization and Authentication requests
  • acr_start - Diameter NASREQ Accounting-Start requests
  • acr_interim - Diameter NASREQ Accounting-Interim-Update requests
  • acr_stop - Diameter NASREQ Accounting-Stop
  • str- Diameter NASREQ Session-Termination requests

Extended Diameter request type

For the diameter_if_requests_rtt_milliseconds metric, the type label specifies the type of Diameter request per interface. The label may have the following values:

  • gx_initial - Diameter Gx initial requests
  • gx_update - Diameter Gx interim requests
  • gx_terminate - Diameter Gx terminate requests
  • gy_initial - Diameter Gy initial requests
  • gy_update - Diameter Gy interim requests
  • gy_terminate - Diameter Gy terminate requests
  • aar - Diameter NASREQ AAR requests
  • acr_start - Diameter NASREQ Accounting-Start requests
  • acr_interim - Diameter NASREQ Accounting-Interim-Update requests
  • acr_stop - Diameter NASREQ Accounting-Interim-Stop requests
  • acr_event - Diameter NASREQ Accounting-Event requests
  • str - Diameter NASREQ STR requests

Diameter histogram metric labels

The le label of the diameter_requests_rtt_milliseconds is the time value that shows how many Diameter requests were handled in that time or less. The label and value are translated into Prometheus histogram buckets and are provided in milliseconds. 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 histogram
  • diameter_requests_rtt_milliseconds_sum - sum of round trip time periods taken into account by the histogram

API metrics

TPOSS exposes the following API-related metrics:

The le label of the api_requests_rtt metric is the time value that shows how many API requests were handled in that time or less. The label and value are translated into Prometheus histogram buckets and are provided in milliseconds. Since the metric is represented as a Prometheus histogramOpens in a new tab, there are two additional associated metrics:

  • api_requests_rtt_count - total number of observations taken into account by the histogram
  • api_requests_rtt_sum - sum of time periods that TPOSS spent to handle API requests

The code label of the api_request_error metric is the HTTP status codeOpens in a new tab returned by the TPOSS API handlers.

The api label identifies the type of TPOSS API. The metrics listed above are collected for the following API types:

For SBI and CDMP, the api label may have the following values that show the number of requests, responses, and the latency of the given type of API:

  • nnas_auth_create
  • nnas_auth_update
  • nnas_auth_release
  • nnas_acct_create
  • nnas_acct_update
  • nnas_acct_release
  • npcf_create
  • npcf_update
  • npcf_release
  • nchf_create
  • nchf_update
  • nchf_release

For the TPOSS HTTP REST API, the api label consists of the API name and action split by an underscore. The following API actions are used:

  • create
  • update
  • upgrade
  • read
  • bulk_read
  • fetch
  • import
  • delete
  • delete_old
  • list
  • combined_list
  • stop

For example - subscriber_create, account_delete, balance_upgrade, cdr_bulk_read, and so on.

External API

In addition to the API handlers that TPOSS provides, TPOSS also uses external API and exposes the following metrics triggered when TPOSS executes external API calls:

The reason label of the error metrics represents the reason why the outgoing request failed. The reason can be an HTTP status codeOpens in a new tab or one of the next values:

  • cant_send_request - TPOSS should send an outgoing request, but can not do it because of not enough data for the given session.
  • client_failure - A client used by TPOSS failed to send a request due to overload or another reason, or sent a request but did not get a response.
  • pool_error - TPOSS should send an outgoing request, but can not do it because no connections are available.

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 CROpens in a new tab that provides two additional metrics:

  • sessions_network_total - provides the total number of network sessions (see the sessions_GGSN metric).
  • sessions_service_total - provides the total number of service sessions (see the sessions_scg metric).

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:

The le label in the histogram metrics represents an upper time bound for a Prometheus bucketOpens in a new tab. Each bucket shows the number of operations that were completed in less than or equal to the specified time (in milliseconds). For example, if the metric db_requests_query_rtt has label le=5 and a value of 100, it indicates that 100 database queries were completed within 5 milliseconds or less.

The db_health_status metric provides the component value, which represents the status of the database health check procedure. The label may have the following values:

  • ping - Result of the MySQL protocol-level ping sent directly to the database host.
  • queue - Specifies whether the database connection pool queue length is below the configured maximum.

The value of the metric is 1 if the check was successful, or 0 if not.

For more information, see the Database health check section.

IP pools metrics

TPOSS exposes the following IP pools metrics:

The metrics ip_pool_block_used_ips_pct, ip_pool_block_used_ips_total, and ip_pool_block_total provide the following labels:

  • instance – Name of the TPOSS node that manages the given IP block.
  • block – The IP block that is managed.
  • pool_name – Name of the IP pool from which the IP block is allocated.
  • pool_range – IP range from which the IP block is allocated.

Note

You can not use the ip_pool_block_total metric to get the total number of IPs managed by TPOSS IP pools. This metric returns the number of IP addresses only within the reserved IP blocks but not in all of them.

Events metrics

TPOSS exposes the following CCS hooks-related metrics:

For more information, see the Hooks configuration document.

OTP runtime metrics

TPOSS exposes the following OTP runtime metrics:

The value of the datapoint label depends on the metric.

Erlang VM garbage collection datapoints

The runtime_garbage_collection metric may have the following datapoint values:

  • number_of_gcs - total number of garbage collections performed by a VM
  • words_reclaimed - total number of words reclaimed during garbage collections

Erlang VM I/O datapoints

The runtime_io metric may have the following datapoint values:

  • input - total number of bytes received by a VM
  • output - total number of bytes sent by a VM

Erlang VM memory datapoints

The runtime_ram metric may have the following datapoint values:

  • total - total number of bytes currently allocated by the underlying BEAM virtual machine
  • processes - total number of bytes allocated for the processes
  • processes_used - total number of bytes currently used by the processes
  • system - total number of bytes allocated by the underlying BEAM virtual machine for system purposes
  • atom - total number of bytes allocated by the underlying BEAM virtual machine for atoms
  • atom_used - total number of bytes currently used for atoms
  • binary - total number of bytes allocated by the underlying BEAM virtual machine for binaries
  • code - total number of bytes allocated by the underlying BEAM virtual machine for code
  • ets - total number of bytes allocated by the underlying BEAM virtual machine for ETS tables

Erlang VM ports datapoints

The runtime_ports metric may have the following datapoint values:

  • port_count - number of ports currently existing at the TPOSS node
  • port_limit - maximum number of simultaneously existing ports at the TPOSS node

Erlang VM processes datapoints

The runtime_processes metric may have the following datapoint values:

  • process_count - number of processes launched by TPOSS
  • process_limit - maximum number of processes that can be launched by TPOSS
  • run_queue_size - total length of all normal and dirty CPU run queues

Erlang VM processors datapoints

The runtime_processors metric may have the following datapoint values:

  • logical_processors - detected number of logical processors configured in the system
  • logical_processors_available - detected number of logical processors available to the TPOSS runtime system

Erlang VM allocators datapoints

The erlang_vm_allocators metric provides information about different memory allocators in the Erlang VM.

  • alloc - the memory allocator name. The possible values are: temp_alloc, eheap_alloc, binary_alloc, ets_alloc, driver_alloc, literal_alloc, sl_alloc, ll_alloc, fix_alloc, or std_alloc. For more information about different types of memory allocators, read the Erlang documentationOpens in a new tab.
  • instance_no - instance number of the memory allocator.
  • kind - type of the memory allocator. The possible values are: mbcs for the multi-block carriers, sbcs for the single-block carriers, and mbcs_pool for pool of multi-block carriers.
  • usage - details about the different aspects of memory usage for the given memory allocator.

For more information about the Erlang VM allocators, read the official documentationOpens in a new tab.

Note

This metric is enabled only in the Prometheus formatOpens in a new tab and does not appear if you request metrics in the JSON format.

NATS metrics

TPOSS exposes the following NATS metrics:

The le label of the nats_requests_rtt metric is the time value that shows how many NATS requests were handled in that time or less. The label and value are translated into Prometheus histogram buckets and are provided in milliseconds. Since the metric is represented as a Prometheus histogramOpens in a new tab, there are two additional associated metrics:

  • nats_requests_rtt_count - total number of NATS requests taken into account by the histogram.
  • nats_requests_sum - sum of round trip time periods taken into account by the histogram.

The service label specifies the NATS service name defined by the nats-services.{SERVICE_NAME} configuration option.

Mnesia metrics

TPOSS exposes the following Mnesia metrics:

External memory allocators 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: