MetricDefaultFilterinterface
Metric filters that can be specified as a default filter on an individual metric.
Metric filters allow controlling specific metric data points, e.g. whether a particular value of a specific metric will be published.
Properties (7)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| additionalAttributes⚓︎ | { [x: string]: unknown } | (() => { [x: string]: unknown }) | x | x | Additional attributes to publish with the values of the metric, specified as key/value
pairs or as a callback returning them (called for every value). Can be specified for a
single metric ( |
| attributes⚓︎ | { complexLoad?: boolean; includesFrameCreation?: boolean; } & Record<string, any> | x | x | Matches the attributes attached to a metric value. Not all metrics have all attribute values. |
| attributeSettings⚓︎ | { [x: string]: MetricAttributeSettings; } | x | x | Controls the publishing of specific attributes, by name. An entry names an attribute by its
flattened (dot-separated) name, or everything nested under it - Can be specified for a single metric ( |
| attributeSettingsMode⚓︎ | AttributeSettingsMode | x | x | How the |
| enabled⚓︎ | boolean | x | x | Whether or not the value for the matching metric will be published. |
| overrideDefaultFilters⚓︎ | boolean | false | x | If |
| sample⚓︎ | number | boolean | true | x | Defines sampling probability for the metric. |