receivers:
  examplereceiver:

processors:
  # The following specifies a resource configuration doing the changes on resource attributes:
  # 1. Set "cloud.zone" attributes with "zone-1" value ignoring existing values.
  # 2. Copy "k8s-cluster" attribute value to "k8s.cluster.name" attribute, nothing happens if "k8s-cluster" not found.
  # 3. Remove "redundant-attribute" attribute.
  # There are many more attribute modification actions supported, 
  # check processor/attributesprocessor/testdata/config.yaml for reference.
  resource:
    attributes:
    - key: cloud.zone
      value: zone-1
      action: upsert
    - key: k8s.cluster.name
      from_attribute: k8s-cluster
      action: insert
    - key: redundant-attribute
      action: delete
  # The following specifies an invalid resource configuration, it has to have at least one action set in attributes field.
  resource/invalid:


exporters:
  exampleexporter:

service:
  pipelines:
    metrics:
      receivers: [examplereceiver]
      processors: [resource]
      exporters: [exampleexporter]
    traces:
      receivers: [examplereceiver]
      processors: [resource]
      exporters: [exampleexporter]
