The Metric Name Filter processor can be used to include or exclude metrics based on their name.
Metrics | Logs | Traces |
---|---|---|
✓ |
Parameter | Type | Default | Description |
---|---|---|---|
action | enum |
exclude |
exclude or include metrics that match. |
match_type | enum |
strict |
Method for matching values. Strict matching requires that ‘value’ be an exact match. Regexp matching uses re2 to match a value. |
metric_names | strings |
required | One or more metric names to match on. |
Filter out (exclude) metrics that match the expression k8s.node.*
.
apiVersion: bindplane.observiq.com/v1
kind: Processor
metadata:
id: filter-name-regexp
name: filter-name-regexp
spec:
type: filter_metric_name
parameters:
- name: action
value: exclude
- name: match_type
value: regexp
- name: metric_names
value:
- k8s.node.*
Include metrics that match, drop all other metrics.
apiVersion: bindplane.observiq.com/v1
kind: Processor
metadata:
id: include-name-strict
name: include-name-strict
spec:
type: filter_metric_name
parameters:
- name: action
value: include
- name: match_type
value: strict
- name: metric_names
value:
- k8s.container.cpu
- k8s.pod.memory