Categorygithub.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor

# README

Resource Processor

Status
Stabilitybeta: traces, metrics, logs
Distributionscore, contrib, k8s
IssuesOpen 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.

# Functions

NewFactory returns a new factory for the Resource processor.

# Structs

Config defines configuration for Resource processor.