Collector architecture

  • Follow receivers, signal pipelines and exporter fan-out inside a gateway process.
100%
Gateway Collector processRemote ingestionendpointsOne Collector can route three signals and fan out tracesTelemetry transferOTLPOTLPtracesmetricslogscopycopymetricslogsSDKprocessNodeagentOTLPreceiverTraceslimit + batchMetricslimit + batchLogslimit + batchTrace primaryTrace secondaryOperationsbackendOTLPOTLPtracesmetricslogscopycopymetricslogs

Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.

  • A receiver accepts data from several sources. Each pipeline groups the processing steps and destinations for a single kind of data. This Collector has one pipeline each for traces, metrics and logs.
  • The memory limiter can refuse incoming data under memory pressure. The batch processor groups accepted records. Each exporter sends its copy to its configured destination.
  • One trace batch is sent to both trace backends. If the secondary stops accepting it, check that exporter’s queue and errors even when the primary already shows the trace.
  • The gateway accepts OTLP from several producers. The trace stream has two recipients; the metrics and logs streams share one backend.
  • A processor chain and exporter queue have different owners. A second destination adds export work and can fail independently.
Signal routing and exporter ownership

Signal routing and exporter ownership

OpenTelemetry Collector Contrib 0.136.0

Route each signal deliberately

  • Two senders can share an OTLP listener. The incoming OTLP service selects traces, metrics or logs. Each enabled pipeline declares an ordered list of processors and one or more exporters.
  • The example duplicates each trace batch to two destinations. It routes metrics and logs to distinct exporter IDs pointing at the same operations endpoint.
  • Set OTEL_GATEWAY_IP to the gateway’s private listen address. The gRPC and HTTP listeners require client certificates trusted by the configured sender CA. Each backend must also be reachable with its required trust and credentials.
Route three signals and duplicate the trace streamyaml
# Collector Contrib 0.136.0. Set OTEL_GATEWAY_IP to the intended private
# interface. Install server identity and sender trust roots before startup.
# Replace the illustrative backend names. OTLP exporters use TLS.
receivers:
  otlp:
    protocols:
      grpc:
        endpoint: ${env:OTEL_GATEWAY_IP}:4317
        tls:
          cert_file: /etc/otel/tls/server.crt
          key_file: /etc/otel/tls/server.key
          client_ca_file: /etc/otel/tls/agent-ca.crt
      http:
        endpoint: ${env:OTEL_GATEWAY_IP}:4318
        tls:
          cert_file: /etc/otel/tls/server.crt
          key_file: /etc/otel/tls/server.key
          client_ca_file: /etc/otel/tls/agent-ca.crt

processors:
  memory_limiter:
    check_interval: 1s
    limit_mib: 256
    spike_limit_mib: 64
  batch: {}

exporters:
  otlp/trace_primary:
    endpoint: trace-a.example.invalid:4317
  otlp/trace_secondary:
    endpoint: trace-b.example.invalid:4317
  otlp/metrics:
    endpoint: signals.example.invalid:4317
  otlp/logs:
    endpoint: signals.example.invalid:4317

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlp/trace_primary, otlp/trace_secondary]
    metrics:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlp/metrics]
    logs:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlp/logs]

Decide where to isolate a pipeline

Condition What to inspect Design option
Secondary trace destination slows Compare the two trace exporters’ send errors, queue sizes and enqueue failures. Give each exporter a bounded queue. A sustained outage still needs a drop or retention policy.
Logs saturate the Collector Examine process memory, CPU and per-signal refused data. Independently deploy and budget the heavy logs pipeline when shared-process contention is unacceptable.
Metrics show duplicate writers or resets Identify scrape/aggregation owners and the resource, metric name and attribute stream. Keep a single writer for each stream. Stateful aggregation or cumulative/delta conversion needs stable ownership.
A field must stay in its trust zone Identify which exporters and debug logs receive the original data. Redact or filter before fan-out and restrict destinations. Fan-out copies the selected data to every listed exporter.
  • A blocking consumer can propagate delay to the receiver. Queues can decouple a transient slowdown. A shared-process configuration offers no independent CPU or memory reservation.
  • Fan-out has no transaction across backends. One destination can accept while another fails; replays may duplicate the successful copy.