Files

1.7 KiB

tags
tags

GET /metrics

!!! info This page was generated by extracting information from a JSON Schema data file for the API. It may be missing some information, or otherwise suggest approximate or placeholder values based on information in the schema file; this is due to limitations on how that data is extracted from the underlying Rust code and into the JSON Schema, and then again from there and into these docs.

Returns the current set of metrics in Prometheus Text Exposition Format. !!! note Metrics generally represent data at the current point in time, to be consumed by an external system (such as Prometheus) which then in turn can build time series data around those metrics.

In addition, in order to avoid unbounded RAM usage for systems
with many queues, a number of queue- or service-specific metrics
will be automatically pruned away when the corresponding queue
idles out for a period of time.

In the default configuration, access to this endpoint requires Trusted IP authentication. See the Authorization documentation for more information on adjusting ACLs.

See also metrics.json.

Metric Documentation

Example Data

Here's an example of the shape of the data. The precise set of counters will vary as we continue to enhance KumoMTA.

You can see the current list by querying the endpoint with no arguments:

$ curl http://localhost:8000/metrics
{% include "reference/http/sample-metrics.txt" %}

Responses

Status 200

Content-Type: text/plain