Describe the OpenTelemetry Collector architecture.
IntermediateConceptTracing & OpenTelemetry
Answer
The Collector is built from components wired into pipelines per signal:
- Receivers: get data in (
otlp,prometheus,filelog,hostmetrics,k8s_cluster). - Processors: transform in order (
memory_limiter,batch,k8sattributes,attributes,filter,tail_sampling,transform). - Exporters: send data out (
otlp,otlphttp,prometheusremotewrite,debug). - Connectors: act as an exporter in one pipeline and a receiver in another (
spanmetrics,servicegraph). - Extensions: non-data features (
health_check,pprof, auth).
service:
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, k8sattributes, batch]
exporters: [otlp/tempo]
A component defined but not referenced in service.pipelines is simply ignored.
More on Tracing & OpenTelemetry
What is distributed tracing, and what are a trace, a span and a span context?BeginnerWhat fields does an OpenTelemetry span carry?BeginnerWhat are span kinds and why do they matter?IntermediateWhat does the W3C `traceparent` header look like?IntermediateWhat is baggage, and how is it different from span attributes?IntermediateWhat is OpenTelemetry and what are its main parts?Beginner