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
actionenumexcludeeclude 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

filter_metric_name

Exclude Regexp

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 Strict

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