Complimentary Gartner® Report! 'A CTO's Guide to Open-Source Software: Answering the Top 10 FAQs.'Read more

Filter Metric Name

Metric Name Filter Processor

The Metric Name Filter processor can be used to include or exclude metrics based on their name.

Supported Types

MetricsLogsTraces

Configuration Table

ParameterTypeDefaultDescription
actionenumexcludeexclude or include metrics that match.
match_typeenumstrictMethod for matching values. Strict matching requires that 'value' be an exact match. Regexp matching uses re2 to match a value.
metric_namesstringsrequiredOne or more metric names to match on.

Example Configuration

Web Interface

observIQ docs - Filter Metric Name - image 1

Exclude Regexp

Filter out (exclude) metrics that match the expression k8s.node.*.

yaml
1apiVersion: bindplane.observiq.com/v1
2kind: Processor
3metadata:
4  id: filter-name-regexp
5  name: filter-name-regexp
6spec:
7  type: filter_metric_name
8  parameters:
9    - name: action
10      value: exclude
11    - name: match_type
12      value: regexp
13    - name: metric_names
14      value:
15        - k8s.node.*

Include Strict

Include metrics that match, drop all other metrics.

yaml
1apiVersion: bindplane.observiq.com/v1
2kind: Processor
3metadata:
4  id: include-name-strict
5  name: include-name-strict
6spec:
7  type: filter_metric_name
8  parameters:
9    - name: action
10      value: include
11    - name: match_type
12      value: strict
13    - name: metric_names
14      value:
15        - k8s.container.cpu
16        - k8s.pod.memory