Skip to content

8. Collector profiles and topologies

Collector configurations are assembled by passing multiple --config arguments in the listed order. Component maps and uniquely named pipelines merge. Later definitions of the same component or list replace or augment according to Collector merge behavior; this repository relies on replacement for profile overrides such as persistent service.extensions and tail-routing traces/intake.

Backend fragments

Backend family Trace exporter Metric exporter Log exporter Authentication
Local file/local_traces file/local_metrics file/local_logs None
Local Grafana otlp_grpc/local_grafana_traces otlp_grpc/local_grafana_metrics otlp_grpc/local_grafana_logs None; development network only
Honeycomb otlp_http/honeycomb_traces otlp_http/honeycomb_metrics otlp_http/honeycomb_logs x-honeycomb-team API key
Grafana Cloud otlp_http/grafana_cloud_traces otlp_http/grafana_cloud_metrics otlp_http/grafana_cloud_logs Authorization: Basic …
Self-managed otlp_grpc/tempo otlp_http/mimir otlp_http/loki Authorization plus X-Scope-OrgID

Local files are JSON Lines under OTELCOL_CAPTURE_DIRECTORY, default /var/lib/otelcol/capture. The three normal local exporters rotate at 10 MiB and retain two backups. The Local Grafana exporters use plaintext OTLP/gRPC to GRAFANA_LOCAL_OTLP_GRPC_ENDPOINT, default lgtm:4317, and keep independent bounded retry queues. The committed Compose topology makes that endpoint internal and publishes only the platform Collector intake on loopback.

Every remote exporter has a configurable timeout, exponential retry starting at one second and capped at ten seconds, and an enabled in-memory queue. Defaults are a 5-second timeout, 1-minute maximum retry window, 2 consumers, and 1,000 queue entries. Persistent overlays replace the selected exporters' retry window and queue storage/size fields with required values.

Honeycomb defaults its OTLP/HTTP endpoint to https://api.honeycomb.io. Grafana Cloud requires one OTLP/HTTP base endpoint for all signals. Self-managed Tempo uses OTLP/gRPC; Mimir and Loki use OTLP/HTTP base endpoints. The self-managed TLS insecure switch defaults to false.

Statically supported compositions

validate_collector_profiles.py declares and natively validates these exact compositions against the pinned Collector image:

Name Ordered files
local base; local traces, metrics, logs
local-grafana base; local Grafana traces, metrics, logs
stateless-honeycomb base; gateway ingress; Honeycomb traces, metrics, logs
stateless-grafana-cloud base; gateway ingress; Grafana Cloud traces, metrics, logs
stateless-self-managed base; gateway ingress; Tempo, Mimir, Loki
stateless-honeycomb-grafana-cloud base; gateway ingress; all Honeycomb and Grafana Cloud fragments
stateless-all base; gateway ingress; all Honeycomb, Grafana Cloud, and self-managed fragments
persistent-honeycomb base; gateway ingress; Honeycomb; persistent queue; persistent Honeycomb overlay
persistent-grafana-cloud base; gateway ingress; Grafana Cloud; persistent queue; persistent Grafana overlay
persistent-self-managed base; gateway ingress; self-managed; persistent queue; persistent self-managed overlay
persistent-honeycomb-grafana-cloud base; gateway ingress; Honeycomb and Grafana Cloud; persistent queue; both persistent backend overlays
tail-local-router base; tail routing; local metrics and logs
tail-local-sampler tail sampler; local traces
tail-honeycomb-router base; gateway ingress; tail routing; Honeycomb metrics and logs
tail-honeycomb-sampler tail sampler; Honeycomb traces
tail-grafana-cloud-router base; gateway ingress; tail routing; Grafana metrics and logs
tail-grafana-cloud-sampler tail sampler; Grafana traces
tail-self-managed-router base; gateway ingress; tail routing; Mimir and Loki
tail-self-managed-sampler tail sampler; Tempo traces

The validator also covers local test-only compositions used to prove fan-out, persistence, TLS, and sampling. Those test overlays are verification fixtures rather than supported deployment profiles.

Local Grafana Compose topology

collector/local-grafana/compose.yaml runs the pinned Collector composition in front of the pinned Grafana LGTM development image. Grafana is published on loopback port 3000. OTLP/gRPC, OTLP/HTTP, Collector health, and Collector self-metrics are published by the platform Collector on loopback ports 4317, 4318, 13133, and 8888 respectively. LGTM's own OTLP receiver remains internal so it cannot bypass common processing. A named /data volume preserves local Grafana, log, metric, and trace state across ordinary Compose shutdowns.

Persistent queues

flowchart LR
    C[Common processed signal] --> X[Forward connector]
    X --> Q1[Backend A file-backed sending queue]
    X --> Q2[Backend B file-backed sending queue]
    Q1 --> A[Backend A]
    Q2 --> B[Backend B]
    FS[(file_storage/queue)] --- Q1
    FS --- Q2

profiles/persistent-queue.yaml creates file_storage/queue at the required storage directory, with a 10-second storage timeout and directory creation enabled. Its service extension list is health_check, bearertokenauth/ingress, and file_storage/queue, so supported persistent deployment compositions also include the gateway-ingress overlay.

Each matching persistent backend overlay changes all three exporters to use file_storage/queue, a required queue size, and a required maximum retry window. It leaves the backend fragment's queue enabled, consumer count, timeout, initial retry interval, and maximum retry interval intact.

The resulting contract is bounded at-least-once delivery. Restart recovery and retries may duplicate records. Durability depends on the deployment mounting stable storage and actually enforcing the preflight quota. The Collector files do not provision that volume or quota.

Tail-sampling topology

Routing tier

The tail-routing overlay replaces the base trace intake so the trace path is memory limiting, resource normalization, required identity, safety, batch, then load_balancing/tail_sampling. The load balancer hashes on trace ID and resolves sampler instances through DNS every five seconds. Its OTLP exporter uses a configurable timeout and TLS-insecure flag, retries from one to five seconds for at most 30 seconds, and uses two queue consumers with a required bounded queue size.

Metrics and logs continue through the unchanged base pipelines into routing-tier backend fragments.

Stateful sampler tier

profiles/tail-sampling.yaml is a standalone trace-only configuration with its own health check, OTLP receiver, trace forward connector, self-observability, memory limiter, normalization, required identity, safety transform, tail sampler, and batch processor. Its OTLP receiver is plaintext and unauthenticated; the deployment must place this internal tier behind its intended network boundary. The router's TLS setting defaults to secure, while the sampler receiver YAML itself has no TLS block.

The sampler uses sampling_strategy: trace-complete and evaluates policies in this order:

  1. retain traces containing an ERROR status;
  2. retain traces whose latency reaches OTELCOL_TAIL_SLOW_TRACE_MS; and
  3. retain a configured baseline percentage probabilistically.

It accepts explicit decision wait, grace after receiving a root, trace capacity, expected traffic, maximum trace size, shutdown behavior, sampled/dropped decision-cache sizes, slow threshold, and baseline percentage. Sampled and non-sampled caches let late spans follow a prior decision while that entry remains cached. Pending traces are configured to drop on shutdown.

Unsupported or unqualified combinations

The committed verification and documentation do not support shared multi-writer persistent storage, unbounded outage buffering, combined persistent and tail profiles without separate qualification, routing one trace to multiple sampler instances, metrics or logs through the stateful sampler, simultaneous head and tail sampling, exactly-once delivery, or decision continuity after a cache entry is evicted.