Collector
abstract class Collector(val fullName: String, val help: String, val labelNames: List<String> = emptyList(), val unit: String = "")
Abstract base class for all Prometheus metric collectors.
A collector gathers and exposes one or more MetricFamilySamples, representing the data for a specific metric (e.g., counters, gauges).
Inheritors
Constructors
Types
Link copied to clipboard
class MetricFamilySamples(val name: String, val unit: String = "", val type: Collector.Type, val help: String, val samples: List<Collector.Sample>)
Represents a metric family and all of its associated Samples.
Link copied to clipboard
Enum representing the types of Prometheus metrics.
Properties
Functions
Link copied to clipboard
Collects the current set of metric samples.
Link copied to clipboard
Returns the simple class name of the Collector instance.
Link copied to clipboard
Registers this collector in the given CollectorRegistry.