Module io.helidon.metrics.api
Package io.helidon.metrics.api
package io.helidon.metrics.api
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.
The registry factories created and used at runtime are managed by a RegistryFactoryProvider
.
This module provides one implementation (NoOpRegistryFactory
which returns
RegistryFactory
instances which create no-op metrics. If the regular metrics implementation component is on the path at
runtime, then the RegistryFactoryProvider
furnished by that component will create fully functional registry
factories.
-
ClassDescriptionCommon reusable implementation for any category of metric implementation (full-featured, no-op).AbstractRegistry<M extends HelidonMetric>Common behavior for any category (e.g., full-featured or no-op) metrics registry.Gauge factories based on either functions or suppliers.Gauge factory based on a function which provides the gauge value when passed an object of a declared type.Gauge factory based on a supplier which provides the gauge value.Settings which control base metrics.Builder for
BaseMetricsSettings
.Settings which control metrics behavior for a metrics-capable component.Builder forComponentMetricsSettings
.Helidon-required behavior for each type (e.g., full-featured or no-op) of metric implementation.Settings for key performance indicator (KPI) metrics.Override default settings.Settings which control behavior for metrics overall.Builder forMetricsSettings
.Behavior of aRegistryFactory
, capable of providing metrics registries of various types (application, base, vendor) plus static methods for: creating "free-standing" registry factories according toMetricsSettings
orConfig
(see thecreate
methods), retrieving the singleton registry factory or updating it according toMetricsSettings
orConfig
(see thegetInstance
methods), and retrieving the appropriate registry factory for a metrics-capable component, based on the component's own metrics settings combined with the overall metrics settings and whether full-featured metrics are available on the path (see theRegistryFactory.getInstance()
method).Filter settings for registries.Builder for a newRegistryFilterSettings
instance.Settings which control metrics within registries (application, vendor, base) as a group or individually.Builder forRegistrySettings
.Deals with global and app-level tags to be included in output for all metrics.