public static final class PrometheusSupport.Builder extends java.lang.Object implements Builder<PrometheusSupport>
PrometheusSupport.| Modifier and Type | Method and Description |
|---|---|
PrometheusSupport |
build()
Build the instance from this builder.
|
PrometheusSupport.Builder |
collectorRegistry(CollectorRegistry registry)
Sets collector registry to use, default is
CollectorRegistry.defaultRegistry. |
PrometheusSupport.Builder |
path(java.lang.String path)
Sets path of the metrics resource, default is
/metrics. |
public PrometheusSupport.Builder collectorRegistry(CollectorRegistry registry)
CollectorRegistry.defaultRegistry.registry - a registry to usepublic PrometheusSupport.Builder path(java.lang.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.