MetricRegistry

In-memory metric registry for collecting and exporting metrics.

Security (BSI SYS.3.2.2.A8): Metrics collection is designed for minimal performance impact with lock-free data structures.

Since

0.4.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Get all metric data for export.

Link copied to clipboard
fun getOrCreateCounter(name: String, description: String, unit: String): CounterData

Register or get a counter.

Link copied to clipboard
fun getOrCreateGauge(name: String, description: String, unit: String): GaugeData

Register or get a gauge.

Link copied to clipboard
fun getOrCreateHistogram(name: String, description: String, unit: String, boundaries: List<Double>): HistogramData

Register or get a histogram.

Link copied to clipboard
fun reset()

Reset all metrics (for testing).