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.

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:

yaml

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 format
  • text/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:

yaml

The metrics are described in the following documents:

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.