Group by Attributes
Metrics | Logs | Traces | BindPlane Agent |
---|---|---|---|
✓ | ✓ | ✓ | v1.0.0+ |
Description
The Group by Attributes Processor groups logs with shared attribute values into the same resource.
Use
The Group by Attributes Processor can be used to properly move attribute values to the resource, and also to compact telemetry data after batching.
Configuration
Field | Description |
---|---|
Attribute Keys | The attribute keys to group by, and move to the resource. When no keys are specified, resources with the same attributes are compacted into the same resource. |
Example Configurations
Compact telemetry with the same resource
By default, the processor will compact resources that match together. Using the processor in this configuration after the batch processor can reduce the amount of data sent to some destinations.

Group into resources by an attribute
The processor may also be used to promote attributes to the resource. Here is an example of promoting the gcp.project.id
attribute on logs to the resource.
