histogram

fun histogram(block: Histogram.Builder.() -> Unit): Histogram

Creates, configures, and registers a Prometheus Histogram.

Return

the registered Histogram instance.

Parameters

block

a lambda with Histogram.Builder as receiver for configuring name, help, buckets, and labels.