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 | Role names allowed to access the metrics endpoint when this config is used by a metrics observer and #permit is false |
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 | Map< | 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 metrics endpoint when this config is used by a metrics observer |
timers. | Time | Default units for timer output in JSON if not specified on a given timer |
Dependent Types
See the manifest for all available types.