java.lang.Object
io.helidon.webserver.servicecommon.HelidonFeatureSupport
io.helidon.metrics.prometheus.PrometheusSupport
- All Implemented Interfaces:
HttpFeature,ServerLifecycle,FeatureSupport,Supplier<HttpFeature>
Support for Prometheus client endpoint.
Default and simplest use on HttpRouting creates /metrics endpoint
for default CollectorRegistry.
HttpRouting.builder()
..addFeature(PrometheusSupport.create())
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PrometheusSupport.Builderbuilder()Creates newBuilderinstance.static PrometheusSupportcreate()Creates new instance using default PrometheusCollectorRegistry.static PrometheusSupportcreate(CollectorRegistry collectorRegistry) Creates new instance using specified PrometheusCollectorRegistry.service()If this feature is represented by a service, return it here, to simplify implementation.Methods inherited from class io.helidon.webserver.servicecommon.HelidonFeatureSupport
configuredContext, context, context, enabled, logger, postSetup, setupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.webserver.servicecommon.FeatureSupport
setupMethods inherited from interface io.helidon.webserver.http.HttpFeature
get, socket, socketRequiredMethods inherited from interface io.helidon.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
service
Description copied from interface:FeatureSupportIf this feature is represented by a service, return it here, to simplify implementation. Otherwise you will need to implementFeatureSupport.setup(HttpRouting.Builder, HttpRouting.Builder).- Returns:
- service if implemented
-
create
Creates new instance using specified PrometheusCollectorRegistry.- Parameters:
collectorRegistry- a registry to use- Returns:
- new instance
- See Also:
-
create
Creates new instance using default PrometheusCollectorRegistry.- Returns:
- new instance
- See Also:
-
builder
Creates newBuilderinstance.- Returns:
- the new instance
- See Also:
-