Skip to content

io.helidon.metrics.api.MetricsConfig

Description

Configuration settings for metrics

Configuration options

KeyTypeDefaultDescription
publishers-discover-servicesBooleanfalseWhether to enable automatic service discovery for publishers
rest-request.enabledBooleanfalseWhether automatic REST request metrics should be measured
warn-on-multiple-registriesBooleantrueWhether to log warnings when multiple registries are created
rolesList<String>observeHints for role names the user is expected to be in
virtual-threads.pinned.thresholdDurationPT0.020SThreshold for sampling pinned virtual threads to include in the pinned threads meter
built-in-meter-name-formatBuiltInMeterNameFormatCAMELOutput format for built-in meter names
enabledBooleantrueWhether metrics functionality is enabled
app-nameStringValue for the application tag to be added to each meter ID
tagsList<MetricsConfigSupport>Global tags
app-tag-nameStringName for the application tag to be added to each meter ID
virtual-threads.enabledBooleanfalseWhether Helidon should expose meters related to virtual threads
publishersList<MetricsPublisher>Metrics publishers which make the metrics data available to external systems
key-performance-indicatorsKeyPerformanceIndicatorMetricsConfigKey performance indicator metrics settings
permit-allBooleantrueWhether to allow anybody to access the endpoint
scopingScopingConfigSettings related to scoping management
timers.json-units-defaultTimeUnitDefault units for timer output in JSON if not specified on a given timer

Deprecated Options

KeyTypeDefaultDescription
rest-request-enabledBooleanWhether automatic REST request metrics should be measured (as indicated by the deprecated config key rest-request-enabled, the config key using a hyphen instead of a dot separator)
gc-time-typeGcTimeTypeCOUNTERWhether the gc.time meter should be registered as a gauge (vs

Dependent Types


See the manifest for all available types.