Metrics
RADIUS Proxy exposes metrics on the /metrics/v1/values endpoint. The metrics are exported in the Prometheus formatOpens in a new tab. To access metrics, an HTTP client must send a request that contains the AcceptOpens in a new tab header with the text/plain value; otherwise, RADIUS Proxy returns the 406Opens in a new tab response code.
RADIUS Proxy metrics are divided into the following groups:
To expose metrics, you can configure a ServiceMonitorOpens in a new tab using these Helm chart configuration options:
RADIUS server metrics
RADIUS Proxy exposes the following RADIUS server metrics:
All RADIUS server metrics contain special labels which allow for accumulating metrics data for different conditions, such as the total number of RADIUS Accounting requests, the mean time of RADIUS requests handling, and so on.
The following labels are present in the RADIUS server metrics:
-
acct_type- the type of the RADIUS Accounting request. The possible values of this label arestart,update, andstop. -
server_name- the name of a RADIUS server, taken from the RPR configuration. It is created by combiningproxy_withauth_oracct_and the server identifier. For example, with the configuration below, the server names would beproxy_auth_1andproxy_acct_1:yaml -
server_port- the port used by a RADIUS server -
server_ip- the IP address a RADIUS server listens on for incoming RADIUS requests -
nas_ip- the NAS IP address from which RADIUS Proxy receives RADIUS requests -
nas_id- the NAS identifier from which RADIUS Proxy receives RADIUS requests.
The value of the nas_id label depends on the RADIUS Proxy configuration. If the RADIUS server source configuration specifies nas_id, its value is used as the label value.
For example, the following configuration of the RADIUS server produces the metric radiusServAcctUpdateRequests{nas_id="PGW"} 2060744 for the RADIUS Accounting-Update requests received from the given source addresses:
If the nas_id is not defined in the RADIUS source, the value of the nas_id is a joint string of the RADIUS server name (the proxy_acct_radius_server in the example above) and the source IP address where the given request was received from. For example, the following configuration of the RADIUS server produces the metric radiusServAcctUpdateRequests{nas_id="proxy_acct_server_127.0.0.4"} 206 for the RADIUS request received from the 127.0.0.4 address:
The le label of the radiusServRtt_bucket 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_count - total number of RADIUS requests taken into account by the histogram
- radiusServRtt_sum - sum of round trip time periods taken into account by the histogram
Note
The time values recorded by the radiusServRtt_bucket metric include the total time of a RADIUS request with possible retransmissions of this request. For example, if the RADIUS request failed by timeout after five seconds with the number of retries set to one, the recorded round trip time is 10 seconds.
RADIUS client metrics
RADIUS Proxy exposes the following RADIUS client metrics:
Each RADIUS client metric contains the following labels:
client_ip- the IP address used by the RADIUS Proxy client to send RADIUS requestsclient_name- the name of the RADIUS client used by RADIUS Proxy to send RADIUS requestsserver_name- the RADIUS server name where the RADIUS Proxy client sends RADIUS requestsserver_ip- the RADIUS server IP address where the RADIUS Proxy client sends RADIUS requestsserver_port- the RADIUS server port where the RADIUS Proxy client sends RADIUS requestsacct_type- type of RADIUS Accounting request. The possible values of this label arestart,update, andstop.
HTTP API metrics
RADIUS Proxy exposes the following HTTP API-related metrics:
The api_requests_rtt metric contains the le label that specifies the Prometheus histogramOpens in a new tab bucket 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 histogram
- api_requests_rtt_sum - sum of time periods that RADIUS Proxy spent to handle HTTP API requests
You can configure the histogram buckets using the following configuration option:
VM runtime metrics
RADIUS Proxy exposes the following Open Telecom Platform (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 RADIUS Proxy VMprocesses- 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 RADIUS Proxy VM for system purposesatom- total number of bytes allocated by the RADIUS Proxy VM for atomsatom_used- total number of bytes currently used for atomsbinary- total number of bytes allocated by the RADIUS Proxy VM for binariescode- total number of bytes allocated by the RADIUS Proxy VM for codeets- total number of bytes allocated by the RADIUS Proxy VM for in-memory Erlang Term Storage (ETS) tables
The runtime_ports metric may have the following datapoint values:
port_count- number of ports currently existing at the RADIUS Proxy nodeport_limit- maximum number of simultaneously existing ports at the RADIUS Proxy node
The runtime_processes metric may have the following datapoint values:
process_count- number of processes launched by RADIUS Proxyprocess_limit- maximum number of processes that can be launched by RADIUS Proxyrun_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 RADIUS Proxy runtime system