README

Resource Processor

Supported pipeline types: metrics, traces, logs

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 processor/attributesprocessor/README.md for more details on supported attributes actions.

Examples:

processors:
  resource:
    attributes:
    - key: cloud.zone
      value: "zone-1"
      action: upsert
    - key: k8s.cluster.name
      from_attribute: k8s-cluster
      action: insert
    - key: redundant-attribute
      action: delete

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

Expand ▾ Collapse ▴

Documentation

Overview

    Package resourceprocessor implements a processor for specifying resource labels to be added to OpenCensus trace data and metrics data.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func NewFactory

    func NewFactory() component.ProcessorFactory

      NewFactory returns a new factory for the Resource processor.

      Types

      type Config

      type Config struct {
      	configmodels.ProcessorSettings `mapstructure:",squash"`
      
      	// AttributesActions specifies the list of actions to be applied on resource attributes.
      	// The set of actions are {INSERT, UPDATE, UPSERT, DELETE, HASH, EXTRACT}.
      	AttributesActions []processorhelper.ActionKeyValue `mapstructure:"attributes"`
      }

        Config defines configuration for Resource processor.