Metrics
TPOSS exposes a rich set of metrics that you can use to monitor the state of TPOSS deployments.
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. For example:
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 one of:
application/json- to export metrics in the JSON formattext/plain- to export metrics in the Prometheus format
All the metrics described in these documents 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:
The metrics are described in the following documents:
- RADIUS metrics
- Diameter metrics
- HSS metrics
- API metrics
- PCS sessions metrics
- Database and storage metrics
- IP pools metrics
- Events metrics
- Runtime metrics
- NATS metrics
Histogram metrics
Every metric of the histogram type exposed by TPOSS is a Prometheus histogramOpens in a new tab, and the rules below apply to all of them.
The le label of every histogram is an upper time bound in milliseconds. The value of a bucket is the number of observations that completed within that time or less specified by the bucket name. For example, if db_requests_query_rtt has the label le=5 and the value 100, then 100 database queries completed within 5 milliseconds or less.
Each histogram also exposes two additional metrics named after it:
{METRIC}_count- the number of observations taken into account by the histogram{METRIC}_sum- the sum of all the observed values
For example, for the db_requests_query_rtt metric, these additional metrics are db_requests_query_rtt_count and db_requests_query_rtt_sum.