Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 740 Bytes

File metadata and controls

27 lines (21 loc) · 740 Bytes

Resource Processor

Supported pipeline types: metrics, traces

The resource processor can be used to override a resource. Please refer to config.go for the config spec.

The following configuration options are required:

  • type: Resource type to be applied. If specified, this value overrides the original resource type. Otherwise, the original resource type is kept.
  • labels: Map of key/value pairs that should be added to the resource.

Examples:

processors:
  resource:
    type: "host"
    labels: {
      "cloud.zone": "zone-1",
      "k8s.cluster.name": "k8s-cluster",
      "host.name": "k8s-node",
    }

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