SamplerGaugeCollector
constructor(name: String, help: String, labelNames: List<String> = emptyList(), labelValues: List<String> = emptyList(), data: () -> Double)
Parameters
name
the metric name.
help
the help/description text for the metric.
labelNames
the label names for the metric. Defaults to empty.
labelValues
the label values corresponding to labelNames. Defaults to empty.
data
a lambda that returns the current gauge value as a Double.