Configuration Options
The OpenTelemetry Collector architecture consists of five primary component types that work together to handle telemetry data throughout its lifecycle:
- Receivers: Components that ingest telemetry data into the Collector
- Processors: Components that transform, filter, or enrich data as it flows through the pipeline
- Exporters: Components that send processed data to backend systems or destinations
- Connectors: Components that link pipeline segments by acting as both exporters and receivers
- Extensions: Optional components that provide auxiliary functionality without directly processing telemetry data
Component Configuration
You can define multiple instances of each component type within a custom resource YAML file. However, components must be explicitly enabled through pipeline definitions in the spec.config.service section to become active.
As a best practice, only enable the components you actually need. This reduces resource consumption and simplifies troubleshooting.
Configuration Example
The following example demonstrates a basic OpenTelemetry Collector configuration with OTLP receivers and multiple exporters:
- Components defined in the configuration but not referenced in the
service.pipelinessection remain inactive. A component must be added to at least one pipeline to function.
Configuration Parameters
The following table describes the main configuration parameters used by the Operator to define the OpenTelemetry Collector:
Pipeline Configuration
Pipelines are defined under service.pipelines and specify the flow of telemetry data through the Collector. Each pipeline type (traces, metrics, logs) can have its own set of receivers, processors, and exporters.
Example pipeline configuration:
Each pipeline independently processes its telemetry type, allowing you to configure different processing logic for traces, metrics, and logs based on your observability requirements.