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