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
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrometheusSupport.Builder
builder()
Creates newBuilder
instance.static PrometheusSupport
create()
Creates new instance using default PrometheusCollectorRegistry
.static PrometheusSupport
create
(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, setup
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.webserver.servicecommon.FeatureSupport
setup
Methods inherited from interface io.helidon.webserver.http.HttpFeature
get, socket, socketRequired
Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
service
Description copied from interface:FeatureSupport
If 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 newBuilder
instance.- Returns:
- the new instance
- See Also:
-