io.helidon.metrics.api.MetricsConfig
Description
Configuration settings for metrics
Configuration options
| Key | Type | Default | Description |
|---|---|---|---|
publishers-discover-services | Boolean | false | Whether to enable automatic service discovery for publishers |
rest-request.enabled | Boolean | false | Whether automatic REST request metrics should be measured |
warn-on-multiple-registries | Boolean | true | Whether to log warnings when multiple registries are created |
roles | List<String> | observe | Hints for role names the user is expected to be in |
virtual-threads.pinned.threshold | Duration | PT0.020S | Threshold for sampling pinned virtual threads to include in the pinned threads meter |
built-in-meter-name-format | BuiltInMeterNameFormat | CAMEL | Output format for built-in meter names |
enabled | Boolean | true | Whether metrics functionality is enabled |
app-name | String | Value for the application tag to be added to each meter ID | |
tags | List<MetricsConfigSupport> | Global tags | |
app-tag-name | String | Name for the application tag to be added to each meter ID | |
virtual-threads.enabled | Boolean | false | Whether Helidon should expose meters related to virtual threads |
publishers | List<MetricsPublisher> | Metrics publishers which make the metrics data available to external systems | |
key-performance-indicators | KeyPerformanceIndicatorMetricsConfig | Key performance indicator metrics settings | |
permit-all | Boolean | true | Whether to allow anybody to access the endpoint |
scoping | ScopingConfig | Settings related to scoping management | |
timers.json-units-default | TimeUnit | Default units for timer output in JSON if not specified on a given timer |
Deprecated Options
| Key | Type | Default | Description |
|---|---|---|---|
rest-request-enabled | Boolean | Whether 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-type | GcTimeType | COUNTER | Whether the gc.time meter should be registered as a gauge (vs |
Dependent Types
See the manifest for all available types.