Class MicrometerFeature
java.lang.Object
io.helidon.webserver.servicecommon.HelidonFeatureSupport
io.helidon.integrations.micrometer.MicrometerFeature
- All Implemented Interfaces:
HttpFeature,ServerLifecycle,FeatureSupport,Supplier<HttpFeature>
@Deprecated(forRemoval=true,
since="4.1")
public class MicrometerFeature
extends HelidonFeatureSupport
Deprecated, for removal: This API element is subject to removal in a future version.
Implements simple Micrometer support.
Developers create Micrometer MeterRegistry objects and enroll them with
MicrometerFeature.Builder, providing with each enrollment a Helidon Handler for expressing the registry's
data in an HTTP response.
Alternatively, developers can enroll any of the built-in registries represented by
the MeterRegistryFactory.BuiltInRegistryType enum.
Having enrolled Micrometer meter registries with MicrometerSupport.Builder and built the
MicrometerSupport object, developers can invoke the registry() method and use the returned
MeterRegistry to create or locate meters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.Fluid builder forMicrometerSupportobjects. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Before server start.static MicrometerFeature.Builderbuilder()Deprecated, for removal: This API element is subject to removal in a future version.Fluid builder forMicrometerSupport.static MicrometerFeaturecreate()Deprecated, for removal: This API element is subject to removal in a future version.Creates a newMicrometerSupportusing default settings.static MicrometerFeatureDeprecated, for removal: This API element is subject to removal in a future version.Creates a newMicrometerSupportusing the providedConfig(anchored at the "metrics.micrometer" node).protected voidpostSetup(HttpRouting.Builder defaultRouting, HttpRouting.Builder featureRouting) Deprecated, for removal: This API element is subject to removal in a future version.This can be used to register services, filters etc.io.micrometer.core.instrument.MeterRegistryregistry()Deprecated, for removal: This API element is subject to removal in a future version.Returns the composite registry so apps can create and register meters on it.Methods inherited from class io.helidon.webserver.servicecommon.HelidonFeatureSupport
configuredContext, context, context, enabled, logger, 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
service, setupMethods inherited from interface io.helidon.webserver.http.HttpFeature
get, socket, socketRequiredMethods inherited from interface io.helidon.webserver.ServerLifecycle
afterStart, afterStop
-
Method Details
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Fluid builder forMicrometerSupport.- Returns:
- Builder
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newMicrometerSupportusing default settings.- Returns:
- default MicrometerSupport
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newMicrometerSupportusing the providedConfig(anchored at the "metrics.micrometer" node).- Parameters:
config- Config settings for Micrometer set-up- Returns:
- newly-created MicrometerSupport
-
registry
public io.micrometer.core.instrument.MeterRegistry registry()Deprecated, for removal: This API element is subject to removal in a future version.Returns the composite registry so apps can create and register meters on it.- Returns:
- the composite registry
-
postSetup
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:HelidonFeatureSupportThis can be used to register services, filters etc. on either the default rules (usually the main routing of the web server) and the feature routing (may be the same instance). IfFeatureSupport.service()provides an instance, that instance will be correctly registered with the context root on feature routing.- Overrides:
postSetupin classHelidonFeatureSupport- Parameters:
defaultRouting- defaultHttpRulesto be updatedfeatureRouting- actual rules (if different from the default ones) to be updated for the service endpoint
-
beforeStart
public void beforeStart()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ServerLifecycleBefore server start.
-
/metricsendpoint and configuration instead of/micrometer.