java.lang.Object
io.helidon.webserver.servicecommon.HelidonFeatureSupport
io.helidon.metrics.prometheus.PrometheusSupport
- All Implemented Interfaces:
HttpFeature,ServerLifecycle,FeatureSupport,Supplier<HttpFeature>
@Deprecated(since="4.5.0",
forRemoval=true)
public final class PrometheusSupport
extends HelidonFeatureSupport
Deprecated, for removal: This API element is subject to removal in a future version.
use Helidon's built-in metrics implementation, which already supports
Prometheus/OpenMetrics output, instead
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 ClassesModifier and TypeClassDescriptionstatic final classDeprecated, for removal: This API element is subject to removal in a future version.use Helidon's built-in metrics implementation, which already supports Prometheus/OpenMetrics output, instead -
Method Summary
Modifier and TypeMethodDescriptionstatic PrometheusSupport.Builderbuilder()Deprecated, for removal: This API element is subject to removal in a future version.Creates newBuilderinstance.static PrometheusSupportcreate()Deprecated, for removal: This API element is subject to removal in a future version.Creates new instance using default PrometheusCollectorRegistry.static PrometheusSupportcreate(CollectorRegistry collectorRegistry) Deprecated, for removal: This API element is subject to removal in a future version.Creates new instance using specified PrometheusCollectorRegistry.service()Deprecated, for removal: This API element is subject to removal in a future version.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
afterStart, afterStop, beforeStart
-
Method Details
-
service
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Creates new instance using specified PrometheusCollectorRegistry.- Parameters:
collectorRegistry- a registry to use- Returns:
- new instance
- See Also:
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Creates new instance using default PrometheusCollectorRegistry.- Returns:
- new instance
- See Also:
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Creates newBuilderinstance.- Returns:
- the new instance
- See Also:
-