Package io.helidon.metrics.prometheus
Class PrometheusSupport.Builder
- java.lang.Object
-
- io.helidon.metrics.prometheus.PrometheusSupport.Builder
-
- All Implemented Interfaces:
Builder<PrometheusSupport>,Supplier<PrometheusSupport>
- Enclosing class:
- PrometheusSupport
public static final class PrometheusSupport.Builder extends Object implements Builder<PrometheusSupport>
A builder ofPrometheusSupport.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrometheusSupportbuild()Build the instance from this builder.PrometheusSupport.BuildercollectorRegistry(CollectorRegistry registry)Sets collector registry to use, default isCollectorRegistry.defaultRegistry.PrometheusSupport.Builderpath(String path)Sets path of the metrics resource, default is/metrics.
-
-
-
Method Detail
-
collectorRegistry
public PrometheusSupport.Builder collectorRegistry(CollectorRegistry registry)
Sets collector registry to use, default isCollectorRegistry.defaultRegistry.- Parameters:
registry- a registry to use- Returns:
- updated builder
-
path
public PrometheusSupport.Builder path(String path)
Sets path of the metrics resource, default is/metrics.- Parameters:
path- a resource path- Returns:
- updated builder
-
build
public PrometheusSupport build()
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<PrometheusSupport>- Returns:
- instance of the built type
-
-