CounterBuilder

Builder class for creating Counter metrics.

Counters represent cumulative values that increase over time (and may reset on restart).

Parameters

name

The metric name.

Functions

Link copied to clipboard
open override fun build(): Counter

Builds and returns the Counter instance.

Link copied to clipboard
fun help(help: String)

Sets the help description for the metric.

Link copied to clipboard
fun includeCreatedSeries(includeCreatedSeries: Boolean)

Configures whether the metric_created series should be included.

Link copied to clipboard
fun labelNames(vararg labelNames: String)

Sets the label names that this metric will use.

Link copied to clipboard
fun unit(unit: String)

Sets the unit of the metric.