DevTools Logo

OpenTelemetry Collector Builder

OpenTelemetry Collector Builder

Generate deterministic Collector pipelines locally in your browser.

Collector options

Receivers
Processors (batch runs before memory limiter)
Exporters
Service pipelines

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

.env Secret Safety Linter

Validate .env syntax and spot likely leaked credentials or placeholder secrets.

.htaccess Generator

Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth

2D Fluid Dynamics & Particle Physics Sandbox

A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.

AI Function Calling Schema Generator

Generate function calling JSON schemas from TypeScript interfaces

Algorithm Arena & Data Structure Visualizer

Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.

Ansible Playbook Generator

Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML