InstrumentedThreadFactory

constructor(delegate: ThreadFactory, name: String, help: String, registry: PrometheusRegistry = PrometheusRegistry.defaultRegistry)

Parameters

delegate

the underlying ThreadFactory to delegate thread creation to.

name

the base name for the Prometheus metrics (see above for the series names).

help

the base help text for the Prometheus metrics.

registry

the registry to register the metrics with. Defaults to PrometheusRegistry.defaultRegistry; factories with the same name need separate registries.