Uses of Interface
io.helidon.metrics.api.MeterRegistry
Package
Description
Defines the Helidon metrics API so Helidon metrics-capable components can implement metrics simply and without regard for
whether metrics is actually on the runtime path or not or is enabled or not.
Micrometer wrapper for Helidon metrics API.
SPI for Helidon metrics.
Microprofile metrics specification implementation.
Helidon WebServer Observability Metrics Support.
-
Uses of MeterRegistry in io.helidon.metrics.api
Modifier and TypeInterfaceDescriptionstatic interface
MeterRegistry.Builder<B extends MeterRegistry.Builder<B,
R>, R extends MeterRegistry> Builder for creating a new meter registry.Modifier and TypeMethodDescription<B extends MeterRegistry.Builder<B,
M>, M extends MeterRegistry>
BMetricsFactory.meterRegistryBuilder()
Returns a builder for creating a newMeterRegistry
.Modifier and TypeMethodDescriptionstatic MeterRegistry
Metrics.createMeterRegistry()
Creates a meter registry, not saved as the global registry, using default metrics config information based on global config.static MeterRegistry
Metrics.createMeterRegistry
(MetricsConfig metricsConfig) Creates a meter registry, not saved as the global registry, based on the provided metrics config.MetricsFactory.createMeterRegistry
(Clock clock, MetricsConfig metricsConfig) MetricsFactory.createMeterRegistry
(Clock clock, MetricsConfig metricsConfig, Consumer<Meter> onAddListener, Consumer<Meter> onRemoveListener) Creates a newMeterRegistry
using the providedClock
andMetricsConfig
and enrolling the specified listners with the new meter registry.MetricsFactory.createMeterRegistry
(MetricsConfig metricsConfig) Creates a newMeterRegistry
using the provided metrics config.MetricsFactory.createMeterRegistry
(MetricsConfig metricsConfig, Consumer<Meter> onAddListener, Consumer<Meter> onRemoveListener) Creates a newMeterRegistry
using the provided metrics config and enrolling the specified listeners with the returned meter registry.static MeterRegistry
Metrics.globalRegistry()
Returns the global meter registry.MetricsFactory.globalRegistry()
Returns the globalMeterRegistry
for this metrics factory.MetricsFactory.globalRegistry
(MetricsConfig metricsConfig) Creates a new global registry according to the configuration and returns it.MetricsFactory.globalRegistry
(Consumer<Meter> onAddListener, Consumer<Meter> onRemoveListener, boolean backfill) Returns the globalMeterRegistry
enrolling the specified listeners to the meter registry.MeterRegistry.onMeterAdded
(Consumer<Meter> onAddListener) Enroll a listener to be notified when aMeter
is added.MeterRegistry.onMeterRemoved
(Consumer<Meter> onRemoveListener) Enroll a listener to be notified when aMeter
is removed.Modifier and TypeMethodDescriptionstatic Timer.Sample
Timer.start
(MeterRegistry registry) Starts a timing sample using the clock associated with the specifiedMeterRegistry
.MetricsFactory.timerStart
(MeterRegistry registry) Returns aTimer.Sample
for measuring a duration, using the clock associated with the specifiedMeterRegistry
. -
Uses of MeterRegistry in io.helidon.metrics.providers.micrometer
Modifier and TypeMethodDescriptionMicrometerPrometheusFormatter.builder
(MeterRegistry meterRegistry) Returns a new builder for constructing a formatter.MicrometerPrometheusFormatterProvider.formatter
(MediaType mediaType, MetricsConfig metricsConfig, MeterRegistry meterRegistry, Optional<String> scopeTagName, Iterable<String> scopeSelection, Iterable<String> nameSelection) -
Uses of MeterRegistry in io.helidon.metrics.spi
Modifier and TypeMethodDescriptionMeterRegistryFormatterProvider.formatter
(MediaType mediaType, MetricsConfig metricsConfig, MeterRegistry meterRegistry, Optional<String> scopeTagName, Iterable<String> scopeSelection, Iterable<String> nameSelection) Returns, if possible, aMeterRegistryFormatter
capable of preparing output according to the specifiedMediaType
.void
MeterRegistryLifeCycleListener.onCreate
(MeterRegistry meterRegistry, MetricsConfig metricsConfig) Receives notification when a newMeterRegistry
is created. -
Uses of MeterRegistry in io.helidon.microprofile.metrics
Modifier and TypeMethodDescriptionvoid
RegistryFactoryManager.onCreate
(MeterRegistry meterRegistry, MetricsConfig metricsConfig) -
Uses of MeterRegistry in io.helidon.webserver.observe.metrics
Modifier and TypeMethodDescriptionMetricsObserverConfig.BuilderBase.meterRegistry()
If you want to have multiple meter registries with different endpoints, you may create them usingMeterRegistry meterRegistry = MetricsFactory.getInstance() .createMeterRegistry(metricsConfig); MetricsFeature.builder() .meterRegistry(meterRegistry) // further settings on the feature builder, etc.
metricsConfig
in each case has differentsettings
.MetricsObserverConfig.BuilderBase.MetricsObserverConfigImpl.meterRegistry()
Modifier and TypeMethodDescriptionJsonMeterRegistryFormatterProvider.formatter
(MediaType mediaType, MetricsConfig metricsConfig, MeterRegistry meterRegistry, Optional<String> scopeTagName, Iterable<String> scopeSelection, Iterable<String> nameSelection) MetricsObserverConfig.BuilderBase.meterRegistry
(MeterRegistry meterRegistry) If you want to have multiple meter registries with different endpoints, you may create them usingMeterRegistry meterRegistry = MetricsFactory.getInstance() .createMeterRegistry(metricsConfig); MetricsFeature.builder() .meterRegistry(meterRegistry) // further settings on the feature builder, etc.
metricsConfig
in each case has differentsettings
.