Builder<PrometheusSupport>public static final class PrometheusSupport.Builder extends Object implements Builder<PrometheusSupport>
PrometheusSupport.| Modifier and Type | Method | Description |
|---|---|---|
PrometheusSupport |
build() |
Builds the object.
|
PrometheusSupport.Builder |
collectorRegistry(io.prometheus.client.CollectorRegistry registry) |
Sets collector registry to use, default is
CollectorRegistry.defaultRegistry. |
PrometheusSupport.Builder |
path(String path) |
Sets path of the metrics resource, default is
/metrics. |
public PrometheusSupport.Builder collectorRegistry(io.prometheus.client.CollectorRegistry registry)
CollectorRegistry.defaultRegistry.registry - a registry to usepublic PrometheusSupport.Builder path(String path)
/metrics.path - a resource pathpublic PrometheusSupport build()
Builderbuild in interface Builder<PrometheusSupport>Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.