Metrics Selector
The metric_selector processor allows you to select metrics to include or exclude (similar to the grep
filter for logs).
Configuration Parameters
The native processor plugin supports the following configuration parameters:
Key | Description | Default |
---|---|---|
Metric_Name | Keep metrics in which the metric of name matches with the actual name or the regular expression. | |
Context | Specify matching context. Currently, metric_name and delete_label_value are only supported. |
|
Action | Specify the action for specified metrics. INCLUDE and EXCLUDE are allowed. | |
Operation_Type | Specify the operation type of action for metrics payloads. PREFIX and SUBSTRING are allowed. | |
Label | Specify a label key and value pair. |
Configuration Examples
Here is a basic configuration example.
All processors are only valid with the YAML configuration format. Processor configuration should be located under the relevant input or output plugin configuration.
Metric_Name parameter will translate the strings which is quoted with backslashes /.../
as Regular expressions. Without them, users need to specify Operation_Type whether prefix matching or substring matching. The default operation is prefix matching. For example, /chunks/
will be translated as a regular expression.
Last updated