public abstract static class PrometheusStatsConfiguration.Builder extends Object
PrometheusStatsConfiguration.| Modifier and Type | Method and Description |
|---|---|
abstract PrometheusStatsConfiguration |
build()
Builds a new
PrometheusStatsConfiguration with current settings. |
abstract PrometheusStatsConfiguration.Builder |
setNamespace(String namespace)
Sets the namespace used for Prometheus metrics.
|
abstract PrometheusStatsConfiguration.Builder |
setRegistry(io.prometheus.client.CollectorRegistry registry)
Sets the given Prometheus
CollectorRegistry. |
public abstract PrometheusStatsConfiguration.Builder setRegistry(io.prometheus.client.CollectorRegistry registry)
CollectorRegistry.registry - the Prometheus CollectorRegistry.public abstract PrometheusStatsConfiguration.Builder setNamespace(String namespace)
namespace - the namespace.public abstract PrometheusStatsConfiguration build()
PrometheusStatsConfiguration with current settings.PrometheusStatsConfiguration.