PrometheusTextFormat

A Prometheus text format encoder (version 0.0.4).

This class is responsible for converting a list of Collectors into a textual representation that conforms to the Prometheus exposition format.

It is typically used by PrometheusExporter to expose metrics over HTTP.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun writeMetrics(collectors: List<Collector>, withTimestamp: Boolean = false): String

Writes the metrics collected from the provided collectors into the Prometheus text exposition format.