io.helidon.metrics.api.MetricsConfig
Description
Configuration settings for metrics
Configuration options
| Key | Type | Default | Description |
|---|---|---|---|
publishers- | Boolean | false | Whether to enable automatic service discovery for publishers |
rest- | Boolean | false | Whether automatic REST request metrics should be measured |
warn- | Boolean | true | Whether to log warnings when multiple registries are created |
roles | List< | observe | Hints for role names the user is expected to be in |
virtual- | Duration | PT0. | Threshold for sampling pinned virtual threads to include in the pinned threads meter |
built- | Built | CAMEL | Output format for built-in meter names |
enabled | Boolean | true | Whether metrics functionality is enabled |
app- | String | Value for the application tag to be added to each meter ID | |
tags | List< | Global tags | |
app- | String | Name for the application tag to be added to each meter ID | |
virtual- | Boolean | false | Whether Helidon should expose meters related to virtual threads |
publishers | List< | Metrics publishers which make the metrics data available to external systems | |
key- | Key | Key performance indicator metrics settings | |
permit- | Boolean | true | Whether to allow anybody to access the endpoint |
scoping | Scoping | Settings related to scoping management | |
timers. | Time | Default units for timer output in JSON if not specified on a given timer |
Deprecated Options
| Key | Type | Default | Description |
|---|---|---|---|
rest- | Boolean | Whether automatic REST request metrics should be measured (as indicated by the deprecated config key rest-, the config key using a hyphen instead of a dot separator) | |
gc- | Gc | COUNTER | Whether the gc. meter should be registered as a gauge (vs |
Dependent Types
See the manifest for all available types.