Package io.helidon.metrics.prometheus
Class PrometheusSupport.Builder
java.lang.Object
io.helidon.webserver.servicecommon.HelidonFeatureSupport.Builder<PrometheusSupport.Builder,PrometheusSupport>
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 HelidonFeatureSupport.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
.Methods inherited from class io.helidon.webserver.servicecommon.HelidonFeatureSupport.Builder
config, config, crossOriginConfig, restServiceSettings, webContext, webContextConfig
-
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.- Returns:
- instance of the built type
-