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).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.Base implementation ofSample.Labeled.Internal interface prescribing minimum behavior of a snapshot needed to produce output.Tuple of a metric ID and associated metric instance.All metric IDs for specific metadata.Settings which control behavior for metrics overall.Builder forMetricsSettings.Helidon Metric registry.Behavior of aRegistryFactory, capable of providing metrics registries of various types (application, base, vendor) plus static methods for: creating "free-standing" registry factories according toMetricsSettingsorConfig(see thecreatemethods), retrieving the singleton registry factory or updating it according toMetricsSettingsorConfig(see thegetInstancemethods), 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 newRegistryFilterSettingsinstance.Settings which control metrics within registries (application, vendor, base) as a group or individually.Builder forRegistrySettings.Common behavior to all types of samples.Sample that does not exist as an actual observation but is derived from actual observations.A sample with a label and a timestamp, typically representing actual observations (rather than derived values).A metric capable of providing samples.A metric that is capable of providing snapshots.Deals with global and app-level tags to be included in output for all metrics.