Skip to content

Latest commit

 

History

History

resourceprocessor

Resource Processor

Status
Stability beta: traces, metrics, logs
Distributions core, contrib
Issues Open issues Closed issues
Code Owners @dmitryax

The resource processor can be used to apply changes on resource attributes. Please refer to config.go for the config spec.

attributes represents actions that can be applied on resource attributes. See Attributes Processor for more details on supported attributes actions.

Examples:

processors:
  resource:
    attributes:
    - key: cloud.availability_zone
      value: "zone-1"
      action: upsert
    - key: k8s.cluster.name
      from_attribute: k8s-cluster
      action: insert
    - key: redundant-attribute
      action: delete

Refer to config.yaml for detailed examples on using the processor.