DevTools Logo

OpenTelemetry Collector Builder

OpenTelemetry Collector Builder

Generate a valid Collector config: declared components only, signal-aware pipelines, memory_limiter first and batch last.

Runs in your browser
Service pipelines
Try an example

Collector options

valid
Receivers
Processors (written in the recommended order)
Exporters
Extensions

Generated collector.yaml

31 lines · 629 chars
The OTLP exporter uses TLS. If the backend is plain-text gRPC, turn on the plain-text option, which adds tls.insecure: true.
The OTLP receivers listen on 0.0.0.0 so other hosts and containers can reach them. Restrict the ports with a firewall or network policy.
receivers:
  otlp/grpc:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
  otlp/http:
    protocols:
      http:
        endpoint: 0.0.0.0:4318
processors:
  memory_limiter:
    check_interval: 1s
    limit_mib: 512
    spike_limit_mib: 102
  batch:
    timeout: 5s
exporters:
  otlp:
    endpoint: otel-backend:4317
  debug:
    verbosity: normal
service:
  pipelines:
    traces:
      receivers: [otlp/grpc, otlp/http]
      processors: [memory_limiter, batch]
      exporters: [otlp, debug]
    metrics:
      receivers: [otlp/grpc, otlp/http]
      processors: [memory_limiter, batch]
      exporters: [otlp, debug]

About

Generate a client-side OpenTelemetry Collector configuration with OTLP gRPC/HTTP, hostmetrics, batch and memory_limiter processors, resource attributes, OTLP/debug/Prometheus exporters, and traces, metrics, and logs pipeline validation.

    Examples

    Minimal traces pipeline

    Input
    buildOpenTelemetryCollectorConfig({ processors: { batch: true, memoryLimiter: true }, exporters: { debug: true }, pipelines: { traces: { enabled: true } } })
    Output
    processors: [batch, memory_limiter], endpoints 0.0.0.0:4317/4318, valid: true

    Defaults wire OTLP receivers through batch then memory_limiter into the debug exporter.

    Undefined exporter warning

    Input
    buildOpenTelemetryCollectorConfig({ exporters: { debug: true }, pipelines: { logs: { enabled: true, exporters: ["otlp"] } } })
    Output
    warnings: ["logs pipeline references undefined exporter: otlp."], valid: false

    Referencing an exporter that is not enabled warns and fails validation until otlp is enabled.

    About this tool

    OpenTelemetry Collector Builder renders a deterministic collector YAML with buildOpenTelemetryCollectorConfig(config) (also exported as generateOpenTelemetryCollectorYaml): receivers default otlp/grpc (4317) and otlp/http (4318) on unless explicitly disabled, optional hostmetrics adds a fixed scraper set, and custom grpcPort/httpPort/prometheusPort fall back to 4317/4318/8889 when out of range.

    Processors order canonically — batch (default on, configurable timeout) always precedes memory_limiter (opt-in with limit_mib and check_interval), followed by a sorted resource-attributes block — and exporters render as enabled otlp (default endpoint otel-collector:4317), debug, and prometheus sections. Pipelines for traces/metrics/logs default to all enabled receivers, processors, and exporters unless overridden per pipeline.

    Diagnostics are built in: references to undefined receivers, processors, or exporters become warnings (an undefined exporter reference also flips valid to false), a pipeline missing any category or an empty pipeline selection becomes an error, and identical configs always serialize to byte-identical YAML.

    How to use this tool

    1. Choose receivers and ports

      Keep OTLP gRPC/HTTP on or disable them explicitly, add hostmetrics if needed, and override ports only where required.

    2. Enable processors and exporters

      Leave batch on, opt into memory_limiter and resource attributes, then enable the otlp, debug, or prometheus exporters you need.

    3. Enable pipelines and check diagnostics

      Turn on traces, metrics, or logs pipelines, resolve any undefined-reference warnings or empty-pipeline errors, then copy the YAML.

    Use cases

    Scaffolding local OTLP collectors

    Generate a working traces pipeline with batching and debug output for development.

    Catching pipeline typos

    Detect misspelled receiver/processor/exporter names via undefined-reference warnings before deploying.

    Standardizing collector YAML

    Check deterministic, canonically ordered YAML into version control across environments.

    Common mistakes

    Mistake:Referencing an exporter that was never enabled.

    Fix:pipeline exporters: ["otlp"] with exporters.otlp unset warns and sets valid false — enable the exporter or drop the reference.

    Mistake:Enabling no pipelines and expecting empty output to validate.

    Fix:Zero enabled pipelines errors with At least one service pipeline must be enabled. — turn on at least one of traces, metrics, or logs.

    Mistake:Assuming processor order follows input order.

    Fix:batch always renders before memory_limiter regardless of config order — the pipeline processors list reflects that canonical order.

    Frequently asked questions

    What does this tool do?

    It renders deterministic collector YAML with buildOpenTelemetryCollectorConfig (alias generateOpenTelemetryCollectorYaml): OTLP gRPC/HTTP receivers, canonical batch → memory_limiter → resource processors, otlp/debug/prometheus exporters, and traces/metrics/logs pipelines with reference diagnostics.

    What are the default ports and processor order?

    OTLP gRPC defaults to 4317, OTLP HTTP to 4318, and Prometheus to 8889 (custom ports fall back to these when out of range). batch always renders before memory_limiter regardless of config order.

    Is my collector config uploaded or stored?

    No. YAML rendering and diagnostics run entirely client-side — endpoints, ports, and resource attributes never leave your browser.

    What fails validation?

    Referencing an undefined exporter (e.g. logs → otlp when otlp is off) warns and sets valid to false; a pipeline missing receivers, processors, or exporters errors; and enabling no pipelines errors with At least one service pipeline must be enabled.

    References & standards