* Split out processor READMEs * Split out exporter READMEs * Split out extension READMEs * Split out receiver READMEs * Add new line at end of READMEs |
||
|---|---|---|
| .. | ||
| testdata | ||
| README.md | ||
| config.go | ||
| config_test.go | ||
| doc.go | ||
| factory.go | ||
| factory_test.go | ||
| resource_processor.go | ||
| resource_processor_test.go | ||
README.md
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.