Resource Processor
core, contrib, k8s
Maintainers: @dmitryax
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
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.
Supported Actions
INSERT: Inserts the key/value to attributes when the key does not existUPDATE: Updates an existing key with a valueUPSERT: Performs insert or update depending on whether the key existsDELETE: Deletes the attributeHASH: Computes the SHA-256 hash of an existing valueEXTRACT: Extracts values using a regular expression
Default Values
Thedefault_value field can be used to specify a fallback value when the primary value source (e.g., attribute, or context value) is not available. This is useful for:
- Providing sensible defaults when attributes don’t exist
- Ensuring the pipeline doesn’t fail due to missing configuration
Configuration
Example Configuration
Last generated: 2026-06-01