otel-collector

otel-collector is a skill for Claude Code from adrielp/ai-engineering-harness. It costs 33 tokens per session (1,245 once invoked), scanned A, original, Apache-2.0.

A configuration guide for the OpenTelemetry Collector, a service that receives, processes, and sends application telemetry such as logs, metrics, and traces. It covers YAML pipelines and deployment settings.

In plain words
What is it for?
Use it to configure Collector receivers, processors, exporters, sampling, pipelines, and deployments.
Why use it?
It helps avoid invalid or unsafe telemetry setups, such as missing memory limits, unreachable endpoints, incorrect processor order, or accidental log replay.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to configure Collector receivers, processors, exporters, sampling, pipelines, and deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adrielp/ai-engineering-harness/otel-collector
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add adrielp/ai-engineering-harness --skill otel-collector
Clone the repo
git clone --depth 1 https://github.com/adrielp/ai-engineering-harness

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for otel-collector

README.md
[![agentmods](https://agentmods.dev/badge/skills/adrielp/ai-engineering-harness/otel-collector/github.svg)](https://agentmods.dev/skills/adrielp/ai-engineering-harness/otel-collector)
Your own site
<a href="https://agentmods.dev/skills/adrielp/ai-engineering-harness/otel-collector"><img src="https://agentmods.dev/badge/skills/adrielp/ai-engineering-harness/otel-collector/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for otel-collector

Your own site · 80×15
<a href="https://agentmods.dev/skills/adrielp/ai-engineering-harness/otel-collector"><img src="https://agentmods.dev/badge/skills/adrielp/ai-engineering-harness/otel-collector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,245 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.01245
Opus 5.5 $0.00013 $0.00498
Sonnet 5.5 $0.00007 $0.00249
Haiku 4.5 $0.00003 $0.00125

Measured 3mo ago against content hash af78d280d01c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

otel-collector scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pi/skills/otel-collector/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenTelemetry Collector Configuration

You are an expert Collector configuration engineer. Produce production-grade YAML — never toy configs. Every pipeline must start with memory_limiter.

Scope: Collector YAML and deployment manifests only. For SDK setup, see otel_instrumentation.


1. Receivers

  • OTLP — default ingest. Always configure BOTH grpc (4317) and http (4318). Never bind localhost in containers (other pods can't reach 127.0.0.1).
  • Prometheus — scrape existing Prom endpoints / pod annotations.
  • Filelog — container logs. Always start_at: end in prod (beginning replays history).
  • Hostmetrics — node CPU/mem/disk/net; deploy as DaemonSet. Omit process scraper (high cardinality).
receivers:
  otlp:
    protocols:
      grpc: { endpoint: 0.0.0.0:4317 }
      http: { endpoint: 0.0.0.0:4318 }

Full receiver configs (Prometheus, filelog, hostmetrics, TLS): references/receivers.md


2. Processors (CRITICAL)

Mandatory order: memory_limiter → resourcedetection → k8sattributes → resource → redaction → other transforms

  • memory_limiter — REQUIRED, always first. limit_mib = 80% of container limit, spike_limit_mib = 25% of that.
  • Do NOT use the batch processor — use exporter sending_queue + file_storage for persistence across restarts.
  • resourcedetection — add env/cloud/host attributes; override: false to preserve SDK attributes.
  • k8sattributes — enrich with pod/namespace/node/deployment. Needs ClusterRole (get/watch/list on pods, namespaces, nodes, replicasets, deployments).
  • filter — drop unwanted telemetry (health checks, deprecated metrics).
processors:
  memory_limiter:
    check_interval: 1s
    limit_mib: 512
    spike_limit_mib: 128

Full processor configs: references/processors.md


3. Exporters

  • otlp (gRPC) — default. Enable compression: gzip, retry_on_failure, and sending_queue with file_storage.
  • otlphttp — use when gRPC is blocked by proxies/firewalls.
  • debug — development only, NEVER in production.

Read the full file on GitHub · 133 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 133 lines · 33 tokens per session scan A af78d280d01c

Subscribe to this mod's changes

otel-collector is a skill published in the GitHub repository adrielp/ai-engineering-harness (22 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 33 tokens to every session and 1,245 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

otel-collector compared with skills from other repositories

otel-collector next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
otel-collectoradrielp/ai-engineering-harnessSkill225mo agoApache-2.0A33Claude Code
gke-compute-classesgoogle/skillsSkill26ktodayApache-2.0A100Claude Code, Codex
cloud-operator-admin-setupgoogle/skillsSkill26ktodayApache-2.0A118Claude Code, Codex
gke-reliabilitygoogle/skillsSkill26ktodayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill26ktodayApache-2.0A171Claude Code, Codex
nemo-automodel-launcher-configNVIDIA/skillsSkill4.3ktodayApache-2.0A30Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3ktodayMITA78Claude Code