You can define custom actions using OpenTelemetry Collector Processors in Odigos.
This option is for advanced users who are familiar with the OpenTelemetry Collector, it’s configuration, and with Kubernetes CRDs.
You can browse the full list of processors that Odigos includes here.
To view the configuration for each processor, it is recommended to visit the README of this component in OpenTelemetry Collector Contrib codebase.
Adding a processor to your Odigos pipeline can be done by creating a Processor
custom resource in your Kuberenetes cluster under the odigos-system
namespace:
processorName
processorName string
: Allows you to attach a meaningful name to the processor for convenience.
notes
notes string
: Allows you to attach notes regarding the processor for convenience.
disabled
disabled boolean
: Allows you to temporarily disable the processor, but keep it saved for future use.
false
signals *
signals string[]
: An array with the signals that the processor will act on.
TRACES
, METRICS
, LOGS
collectorRoles *
collectorRoles string[]
: An array with the collector roles that the processor will act on.
CLUSTER_GATEWAY
, NODE_COLLECTOR
type *
type string
: The type of the processor.
orderHint
orderHint number
: If your processors need to run in a specific order relatively to other processors, you can hint the order by setting an integer value here.
processorConfig
processorConfig object
: A field to pass configuration to the processor.
The following example demonstrates how to add a resource attribute deployment.environment
with the value production
to all spans in the cluster.
Create a YAML file with the following content:
Apply the action to the cluster:
You can define custom actions using OpenTelemetry Collector Processors in Odigos.
This option is for advanced users who are familiar with the OpenTelemetry Collector, it’s configuration, and with Kubernetes CRDs.
You can browse the full list of processors that Odigos includes here.
To view the configuration for each processor, it is recommended to visit the README of this component in OpenTelemetry Collector Contrib codebase.
Adding a processor to your Odigos pipeline can be done by creating a Processor
custom resource in your Kuberenetes cluster under the odigos-system
namespace:
processorName
processorName string
: Allows you to attach a meaningful name to the processor for convenience.
notes
notes string
: Allows you to attach notes regarding the processor for convenience.
disabled
disabled boolean
: Allows you to temporarily disable the processor, but keep it saved for future use.
false
signals *
signals string[]
: An array with the signals that the processor will act on.
TRACES
, METRICS
, LOGS
collectorRoles *
collectorRoles string[]
: An array with the collector roles that the processor will act on.
CLUSTER_GATEWAY
, NODE_COLLECTOR
type *
type string
: The type of the processor.
orderHint
orderHint number
: If your processors need to run in a specific order relatively to other processors, you can hint the order by setting an integer value here.
processorConfig
processorConfig object
: A field to pass configuration to the processor.
The following example demonstrates how to add a resource attribute deployment.environment
with the value production
to all spans in the cluster.
Create a YAML file with the following content:
Apply the action to the cluster: