The metric_selector processor allows you to select metrics to include or exclude (similar to the grep
filter for logs).
The native processor plugin supports the following configuration parameters:
Key | Description | Default |
---|---|---|
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.
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 is only supported.
Metrics_Name
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.