1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/otel-processors-resource-processor.adoc

31 lines
888 B
Plaintext

// Module included in the following assemblies:
//
// * observability/otel/otel-collector/otel-collector-processors.adoc
:_mod-docs-content-type: REFERENCE
[id="otel-processors-resource-processor_{context}"]
= Resource Processor
[role="_abstract"]
The Resource Processor applies changes to the resource attributes. This processor supports traces, metrics, and logs.
.OpenTelemetry Collector using the Resource Processor
[source,yaml]
----
# ...
config:
processors:
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
# ...
----
Attributes represent the actions that are applied to the resource attributes, such as delete the attribute, insert the attribute, or upsert the attribute.