OTel Config Examples
An OpenTelemetry receiver ingests telemetry data (metrics, logs, traces) in specific formats from agents or services and forwards it through a processing pipeline. A full raw configuration involves manually defining the entire pipeline—receivers, processors, and exporters—providing full control over data flow, enrichment, and output. Below are some example configuration templates to help you get started.
OTel Full Raw Configuration Examples
Below are full raw configuration examples for OpenTelemetry Collector deployments, covering Windows, Linux, and macOS environments. These examples demonstrate end-to-end pipeline setups, including receivers, processors, and exporters, tailored for each operating system.
Windows
Use otlp with TLS (if required) not otlphttp since it’s more efficient.
receivers:
windowseventlog/security:
channel: security
processors:
attributes:
actions:
- key: environment
value: "production"
action: insert
exporters:
otlp/observo:
endpoint: 34.63.104.225:8004
compression: gzip
retry_on_failure:
enabled: true
initial_interval: 5s
max_elapsed_time: 300s
max_interval: 30s
timeout: 30s
tls:
insecure: true
service:
pipelines:
logs:
receivers: [windowseventlog/security]
processors: [attributes]
exporters: [otlp/observo]Linux
macOS
This section is reserved for macOS. Updates will follow based on available macOS functionality.
OTel Receiver Examples
WIndows
Single Receiver:
Multiple Receivers:
Linux
Single Receiver:
Multiple Receivers:
macOS
This section is reserved for macOS. Updates will follow based on available macOS functionality.
Resources
For additional guidance and detailed information, refer to the following resources:
OpenTelemetry Resources
OpenTelemetry Official Documentation: Learn about OTel standards, including receivers, processors, exporters, and the OTLP protocol. See OTel Docs.
OpenTelemetry Collector GitHub Repository: Source code and configuration examples for the OTel Collector. See Github reference.
OTel Configuration Best Practices: Guide to writing efficient and secure OTel configurations. See OTel Guides.
Last updated
Was this helpful?

