Delete Resource

Delete Resource Processor

The Delete Resource processor can be used to remove resources from metrics, traces, and logs.

Supported Types

MetricsLogsTraces

Configuration Table

ParameterTypeDefaultDescription
resourcesstringsrequiredOne or more resource names to remove.
telemetry_typesenumsThe telemetry types to remove resource from (Metrics, Traces, Logs).

Example Configuration

Remove the following resources:

  • environment
  • location

Web Interface

delete_resource

Standalone Processor

apiVersion: bindplane.observiq.com/v1
kind: Processor
metadata:
  id: delete-resources
  name: delete-resources
spec:
  type: delete_resource
  parameters:
    - name: resources
      value:
        - environment
        - location
    - name: telemetry_types
      value:
        - Metrics
        - Traces
        - Logs

Configuration with Embedded Processor

apiVersion: bindplane.observiq.com/v1
kind: Configuration
metadata:
  id: delete-resource
  name: delete-resource
  labels:
    platform: linux
spec:
  sources:
    - type: journald
      parameters:
        - name: units
          value: []
        - name: directory
          value: ""
        - name: priority
          value: info
        - name: start_at
          value: end
      processors:
        - type: delete_resource
          parameters:
            - name: resources
              value:
                - environment
                - location
            - name: telemetry_types
              value:
                - Metrics
                - Traces
                - Logs
  selector:
    matchLabels:
      configuration: delete-resource