/opentelemetry-agent-skills:otel-collectorfrom opentelemetry-agent-skills
Provides configuration details for OpenTelemetry Collector components: receivers, processors, exporters, connectors, and extensions. Covers config keys, defaults, validation, stability levels, and gotchas. Useful when authoring, reviewing, or debugging Collector YAML.
Ships in opentelemetry-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill covers the configuration surface of individual OpenTelemetry Collector components. It targets opentelemetry-collector and opentelemetry-collector-contrib.
It does not cover OTTL expressions (see otel-ottl), declarative SDK configuration (otel-declarative-config), deploying the eBPF profiler or other profiles producers (otel-profiles), or end-to-end pipeline design choices. Reach for those skills when the question is about transformation language, SDK setup, or pipeline composition.
type in the user's config or question (log_dedup, interval, otlp, …). Note that many components have been renamed to snake_case since v0.146.0 with deprecated aliases preserved — see Recent renames.README.md path in its index row first — the top-level index is only a routing aid, not enough evidence for an answer. Follow its Details index to the smallest relevant file: read configuration.md for versioned keys, defaults, or validation; quirks.md for stability, availability, failure behavior, or migration traps; and the other detail files only as the question requires. Do not infer exact configuration or status from the summary row or memory.processor/<name>/, receiver/<name>/, exporter/<name>/, connector/<name>/, or extension/<name>/ in opentelemetry-collector-contrib. Don't invent config keys from memory — Collector components evolve quickly.type/name), stability levels, and pipeline placement rules in Collector-wide conventions apply to every component.telemetrygen (see the otel-telemetrygen skill) plus a debug or file exporter — to confirm the component behaves as the docs claim. Alpha- and Development-stability components are common here, and behavior changes between releases. See Verification harness for how to run a recipe end-to-end.Each component is a directory under components/<type>/. The File column points at the lean README.md (metadata, description, main use-cases, and a Details index); the full config reference, verification recipe, advanced use-cases, and quirks live in on-demand detail files linked from that README.
Coverage is intentionally selective. If a component is not indexed here, fall back to the upstream component README for the user's Collector version.
Stability cells here and in component README headers, README distribution cells, and the v0.164.0 and v0.165.0 notes here and in component pages come from core v0.165.0, contrib v0.165.1 and the v0.165.0 release manifests; see the core v0.165.0 and contrib v0.165.1 changelogs. The v0.166.0 notes in prometheus_exporter pages come from the contrib v0.166.0 changelog and exporter/prometheusexporter/metadata.yaml. Values hold for the named releases; check the current release before relying on them.
Rename and "since" versions name the first tag whose metadata.yaml carries the change.
The v0.164.0 notes in component pages (PermissiveLabelSanitization and filelog.protobufCheckpointEncoding Stable; file_log, transform and resource_detection in the core distribution) come from the contrib v0.164.1 changelog, pkg/translator/prometheus/metadata.yaml, pkg/stanza/fileconsumer/metadata.yaml and the otelcol manifest at v0.164.0.
| Type | File | Kind | Signals | Stability | Summary |
|---|---|---|---|---|---|
log_dedup | components/log_dedup/README.md | processor | logs | Alpha | Deduplicates identical log records over a time window; emits one aggregated log with a count. Renamed from logdedup in v0.151.0; alias preserved. |
interval | components/interval/README.md | processor | metrics | Alpha | Buffers metrics and emits one point per series per interval: latest value for cumulative monotonic series, gauges, and summaries; the summed value for delta series. Non-monotonic sums pass through unchanged. |
tail_sampling | components/tail_sampling/README.md | processor | traces | Beta | Buffers whole traces and makes a single keep/drop decision after a wait window via policies. Supports in-process concurrency through num_shards; scaling across Collector instances still requires a load_balancing layer. v0.160 adds tracestate-aware thresholds for rate/bytes limiting. |
drain | components/drain/README.md | processor | logs | Alpha | Clusters log bodies and annotates each record with a template. v0.158 replaced extract_parameters / params_attribute with masking_rules + parameter_key_prefix for named values and emit_wildcards + wildcards_attribute for remaining <*> positions. |
redaction | components/redaction/README.md | processor | traces, logs, metrics | Beta (traces), Alpha (logs/metrics) | Allow/block-list masking or removal of sensitive attribute keys and values, with hashing and URL/DB sanitizers. |
filter | components/filter/README.md | processor | traces, metrics, logs, profiles | Alpha (traces/metrics/logs), Development (profiles) | Drops spans, metric data points, log records, and profiles that match OTTL conditions (or legacy metric-name / severity filters). The most direct telemetry-volume lever. |
transform | components/transform/README.md | processor | traces, metrics, logs, profiles | Beta (traces/metrics/logs), Development (profiles) | Applies OTTL statements to mutate spans, metric data points, log records, and profiles in place (rename/redact/convert/aggregate attributes). The OTTL language itself lives in the otel-ottl skill. |
probabilistic_sampler | components/probabilistic_sampler/README.md | processor | traces, logs | Beta (traces), Alpha (logs) | Head sampling — deterministically keeps a configured percentage of traces/logs by hashing the trace ID (or an attribute). The cheaper, stateless counterpart to tail_sampling. |
attributes | components/attributes/README.md | processor | traces, metrics, logs | Beta | Modifies span/log/datapoint attributes via an ordered action list (insert/update/upsert/delete/hash/extract/convert), scoped by include/exclude matching. |
resource | components/resource/README.md | processor | traces, metrics, logs, profiles | Beta (traces/metrics/logs), Development (profiles) | Modifies the resource attributes of telemetry via the same action grammar as attributes (e.g. set service.name, drop noisy resource keys). No include/exclude matching. |
k8s_attributes | components/k8s_attributes/README.md | processor | traces, metrics, logs, profiles | Stable (traces/metrics/logs, since v0.161), Development (profiles) | Enriches telemetry with Kubernetes pod/namespace/node/workload metadata, associating each record to a pod by IP or resource attribute. v0.161 enables the v1 semconv gates by default (singular k8s.pod.label.*, container.image.tags). |
routing | components/routing/README.md | connector | traces, metrics, logs | Alpha | Routes same-signal telemetry to different pipelines by OTTL condition/statement per context; ordered table, first match wins, default_pipelines fallback. Replaces the deprecated routingprocessor. |
memory_limiter | components/memory_limiter/README.md | processor | traces, metrics, logs, profiles | Beta (traces/metrics/logs), Alpha (profiles) | Safety valve against OOM: refuses data with backpressure when Go heap exceeds a soft/hard limit. Its receiver-middleware extension reached Beta in v0.158 but is absent from stock distributions; the bundled processor remains the standard form. |
load_balancing | components/load_balancing/README.md | exporter | traces, logs, metrics | Beta (traces/logs), Alpha (metrics) | Distributes telemetry across downstream Collectors via a consistent-hash ring keyed on trace ID / service.name / (v0.162+) OTel randomness, etc., pinning related records to one backend. The standard way to scale tail_sampling/span_metrics. Renamed from loadbalancing in v0.153.0; alias preserved. |
otlp (receiver) | components/otlp/README.md | receiver | traces, metrics, logs, profiles | Stable (traces/metrics/logs), Alpha (profiles) | The canonical OTLP ingress over gRPC (4317) and/or HTTP (4318, protobuf + JSON). protocols: block, at least one required. Default endpoint is localhost, not 0.0.0.0 — must be set explicitly to receive containerized traffic. |
otlp_grpc (exporter) | components/otlp_exporter/README.md | exporter | traces, metrics, logs, profiles | Stable (traces/metrics/logs), Alpha (profiles) | Sends OTLP over gRPC to a downstream endpoint; gzip, sending queue, and retry are enabled by default. Exporter-side sending_queue.batch is opt-in unless the pkg.exporterhelper.queueBatchEnabled gate is enabled. Renamed from otlp in core v1.50.0; alias preserved. |
file_log (receiver) | components/file_log/README.md | receiver | logs | Beta | Tails log files (glob include), turns each line/entry into a log record, and parses it via a stanza operators pipeline. Fingerprint + offset tracking across rotation; storage for durable offsets. v0.160 adds opt-in skip_unmodified_files. |
resource_detection | components/resource_detection/README.md | processor | traces, metrics, logs, profiles | Beta (traces/metrics/logs), Development (profiles) | Auto-detects resource attributes via an ordered detectors list with global retry settings. Includes Azure Container Apps, Azure App Service (v0.160+), and Azure Functions (v0.162+) detectors. Renamed from resourcedetection in v0.153.0; alias preserved. |
file_storage | components/file_storage/README.md | extension | — (not pipeline-scoped) | Beta | Persists component state to local disk (bbolt) so it survives a Collector restart: receiver read offsets (storage:), exporter persistent send queues (sending_queue.storage:), and stateful-processor decision caches. One bbolt file per consumer; directory must exist unless create_directory: true. Not placed in a pipeline — listed under service.extensions: and referenced by other components. |
prometheus (receiver) | components/prometheus/README.md | receiver | metrics | Beta | Scrapes Prometheus-format HTTP endpoints and converts them to OTLP metrics, embedding prometheus/prometheus's scrape manager — the config: block is the same YAML as prometheus.yml (global, scrape_configs, scrape_config_files, service discovery, relabeling). Extra keys: trim_metric_suffixes, target_allocator (sharded targets from the OTel Operator), api_server (debug API). Scrape-only: rejects remote_write/remote_read/rule_files/alerting. Stateful, does not auto-shard across replicas. |
prometheus (exporter) | components/prometheus_exporter/README.md | exporter | metrics | Beta | Exposes pipeline metrics for Prometheus to scrape. In-memory accumulator expires stale series after 5m. v0.160 adds resource_constant_labels and deprecates resource_to_telemetry_conversion; add_metric_suffixes is deprecated and ignored in v0.166.0; use translation_strategy. |
prometheus_remote_write (exporter) | components/prometheus_remote_write/README.md | exporter | metrics | Beta | Pushes OTLP metrics as Prometheus Remote Write. Nests HTTP client settings under http; uses remote_write_queue (not sending_queue). v0.160 adds resource_constant_labels and deprecates resource_to_telemetry_conversion; RW2 remains gated and in development. |
failover | components/failover/README.md | connector | traces, metrics, logs | Alpha | Sends same-signal telemetry to the first healthy priority_levels entry; fails over when a level returns an error synchronously and probes higher levels every retry_interval to fail back. An exporter sending_queue in a priority pipeline hides failures from it. |
clickhouse | components/clickhouse/README.md | exporter | traces, logs, metrics, profiles | Beta (traces/logs), Alpha (metrics), Development (profiles) | Inserts telemetry into ClickHouse tables over the native or HTTP protocol. create_schema (default true) runs DDL at start, and a DDL failure stops the Collector. No error is permanent, so failed inserts retry until max_elapsed_time. |
awss3 (exporter) | components/aws_s3_exporter/README.md | exporter | traces, metrics, logs | Alpha | Writes each export request as one S3 object (OTLP JSON or Protobuf, logs-only formats, or an encoding extension) under an upload-time partition key; bucket and prefix can come from a resource attribute. |
aws_s3 (receiver) | components/aws_s3/README.md | receiver | traces, metrics, logs | Alpha | Reads S3 objects into a pipeline, either as a one-shot time-range replay of awss3 exporter partitions or driven by SQS ObjectCreated notifications. Renamed from awss3 in v0.162.0; alias preserved. |
Every component type supports the type/name pattern so the same type can be configured more than once. The pipeline references the named form:
processors:
log_dedup/health-checks:
interval: 30s
conditions:
- 'log.attributes["log.type"] == "health_check"'
log_dedup/access-logs:
interval: 10s
service:
pipelines:
logs/health:
processors: [log_dedup/health-checks]
logs/access:
processors: [log_dedup/access-logs]
The Collector builds a receiver or exporter once per ID and pipeline signal (core v0.165.0 graph.go), and pipelines of one signal share it. Different signals share one instance only when the factory caches it, typically through sharedcomponent as the otlp receiver does; otherwise one ID in a traces and a logs pipeline runs twice.
Components publish a stability level per signal. Treat these as load-bearing when recommending production use:
| Level | Use in |
|---|---|
| Development | Tests and prototypes only — breaking changes expected. |
| Alpha | Limited, non-critical workloads — config keys can still change. |
| Beta | Production viable — breaking changes rare. |
| Stable | Production — backward compatibility guaranteed. |
Stability varies per component — and per signal for multi-signal components (e.g. redaction is Beta for traces but Alpha for logs/metrics). Don't assume a single level for the indexed set: check each component's README header metadata table for the authoritative stability and surface it when the user asks about production readiness.
Many components have been renamed to snake_case since v0.146.0, and renames are still landing (e.g. the awss3 receiver → aws_s3 in v0.162.0, sqlserver → sql_server in v0.163.0; receivers and exporters of one family rename separately, so check the component's metadata.yaml type; the awss3 exporter keeps its name). The legacy names remain as deprecated aliases — old configs keep working, and the configured name stays the component ID in the component's own telemetry (core v0.165.0 builders.go only logs a deprecation warning), but new configs should use the new names. Check the upstream component README for the exact rename version before flagging a config as broken.
Examples: logdedup → log_dedup, hostmetrics → host_metrics, spanmetrics → span_metrics, servicegraph → service_graph, k8sattributes → k8s_attributes, plus several _log and _check receivers.
Exporters built on core's exporterhelper share sending_queue, retry_on_failure, and timeout. references/exporterhelper.md holds their keys, the helper's defaults, validation, and how in-memory and persistent (storage) queues behave; each exporter's own defaults are on its component page.
Rules of thumb that apply across components:
memory_limiter belongs first in any processor list, before anything that allocates buffers (log_dedup, transform, tail_sampling, …).sending_queue.batch) is opt-in for exporters that keep the helper default, such as otlp_grpc (how to enable it). The separate batch processor remains Beta and supported; use it when pipeline-level batching is needed and place it after data-dropping processors. Since core v0.165.0 the Collector warns at startup when one pipeline has both: Pipeline has both a batch processor and an exporter with batching enabled; this will cause double batching. The check does not follow data through connectors.batch processor returns nil once it holds the data, so export errors never reach the components in front of it (core v0.165.0 batch_processor.go); the same holds for an exporter's sending queue unless it sets wait_for_result: true. Data it holds in memory is lost on a crash; an exporter persistent queue (storage) protects only data that has reached it.A Stable gate cannot be disabled (is stable, can not be disabled), and naming a removed gate in --feature-gates fails startup with no such feature gate. Component pages give only each gate's stage and the version it changed.
Each component page's Verification section gives a config, a telemetrygen command, and the expected output. To run any of them:
contrib/k8s distributions, otelcol-contrib --config <file>.yaml; for components not in any distribution, build a custom collector with the OpenTelemetry Collector Builder (OCB) first.telemetrygen (see the otel-telemetrygen skill).debug exporter's stdout (or the file exporter's output) for the expected result.The Verification configs are minimal repros: they omit memory_limiter and other production scaffolding on purpose, to isolate the component under test. Don't copy them verbatim into production.
The failover, clickhouse, awss3 exporter, and aws_s3 recipes ran on otel/opentelemetry-collector-contrib:0.165.0, because no 0.165.1 image is published (otel-telemetrygen preconditions); those components differ between contrib v0.165.0 and v0.165.1 at most in go.mod. "Observed" in their pages marks behavior seen in that setup. Core v0.165.0 samples the Collector's own logs by default (per message, the first 10 entries every 10s, then every 100th), so a recipe that counts more log lines than that needs service.telemetry.logs.sampling.enabled: false.
When extending coverage:
components/<type>/. Files carry no frontmatter — only SKILL.md has frontmatter.README.md — always loaded, kept small:
type name, signals, per-signal stability, distributions, Go module, upstream README link, and a rename note if the component was renamed.configuration.md).- [Configuration](configuration.md) — config keys, defaults, validation), so the reader loads only what a question needs.configuration.md — full config-reference table (key, type, default, validation) plus any mechanism/reference tables. For an exporter, give only its own sending_queue / retry_on_failure / timeout defaults and link references/exporterhelper.md for what they do.verification.md — a telemetrygen + debug/file exporter recipe that proves the documented behavior; cross-reference the otel-telemetrygen skill. Verify every telemetrygen flag against that skill — never assert a flag that doesn't exist. If telemetrygen can't produce the input the component needs, say so and point to an alternative (OTTL/transform, a custom emitter). Keep the config a minimal repro (see Verification harness).advanced.md — named instances, multi-pipeline setups, combinations, and edge configs.quirks.md — gotchas, stability caveats, memory model, a validation-error→fix table, anti-patterns, and troubleshooting.policies.md for a big policy catalog); merge trivial sections into a sibling rather than create a stub. Repoint any in-page anchor links that now cross files.components/log_dedup/ and components/interval/ as reference implementations of this structure.File column points at components/<type>/README.md).components/attributes/README.md (opens in a new tab)components/attributes/advanced.md (opens in a new tab)components/attributes/configuration.md (opens in a new tab)components/attributes/quirks.md (opens in a new tab)components/attributes/verification.md (opens in a new tab)components/aws_s3/README.md (opens in a new tab)components/aws_s3/advanced.md (opens in a new tab)components/aws_s3/configuration.md (opens in a new tab)components/aws_s3/quirks.md (opens in a new tab)components/aws_s3/verification.md (opens in a new tab)components/aws_s3_exporter/README.md (opens in a new tab)components/aws_s3_exporter/advanced.md (opens in a new tab)components/aws_s3_exporter/configuration.md (opens in a new tab)components/aws_s3_exporter/quirks.md (opens in a new tab)components/aws_s3_exporter/verification.md (opens in a new tab)components/clickhouse/README.md (opens in a new tab)components/clickhouse/advanced.md (opens in a new tab)components/clickhouse/configuration.md (opens in a new tab)components/clickhouse/quirks.md (opens in a new tab)components/clickhouse/verification.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
20 skills in this plugin
/otel-browserOpenTelemetry browser/RUM mechanics for SPAs and MPAs. Use for “browser OTel,” “frontend observability,” “Web Vitals,” `sdk-trace-web`, `WebTracerProvider`, `browser-sdk`, browser instrumentations, page-load or route tracing, sessions, clicks, console capture, JavaScript errors, or frontend-to-backend trace correlation. Browser telemetry is privacy- and volume-sensitive, and experimental packages move quickly. Not for Node.js service instrumentation or Collector-only configuration./otel-cicdObserve CI/CD pipelines with OpenTelemetry. Use when turning GitHub Actions or GitLab CI/CD runs, jobs and steps into traces with the Collector `github` or `gitlab` receiver (workflow_run and pipeline webhooks, the GitHub scraper), or keeping raw webhook payloads as logs with `webhook_event`; collecting pull-request, branch and repository (VCS) or DORA metrics such as lead time for changes; joining build or test processes to the pipeline trace through `TRACEPARENT` or otel-cli; exporting OTLP from Jenkins, Argo Workflows, Tekton, Buildkite, Concourse or Dagger; or applying the `cicd.*` and `vcs.*` semantic conventions. Triggers on "trace our GitHub Actions workflows", "GitLab pipeline traces in the Collector", "make test spans join the CI trace", and "instrument our pipeline runner". Not for testing OpenTelemetry changes in CI, dependency-update automation, or deployment verification.Generated from the plugin's indexed repository (ollygarden/opentelemetry-agent-skills) — no native marketplace selected
npx claudepluginhub p/ollygarden-opentelemetry-agent-skillsOther plugins' skills for the same job