otel_collector

otel_collector is a skill for Claude Code from adrielp/ai-engineering-harness. It costs 56 tokens per session (2,359 once invoked), scanned A, original, Apache-2.0.

A guide for configuring the OpenTelemetry Collector, a service that receives, processes, and sends application telemetry such as logs, metrics, and traces.

In plain words
What is it for?
Use it when writing Collector YAML or deployment files for OTLP, Prometheus, file logs, host metrics, sampling, or derived RED metrics. It does not cover application SDK setup.
Why use it?
It helps avoid configuration errors involving receivers, pipeline order, sampling, container networking, and production resource limits.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when writing Collector YAML or deployment files for OTLP, Prometheus, file logs, host metrics, sampling, or derived RED metrics. It does not cover application SDK setup.

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 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,359 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.00056 $0.02359
Opus 5.5 $0.00022 $0.00944
Sonnet 5.5 $0.00011 $0.00472
Haiku 4.5 $0.00006 $0.00236

Measured 3mo ago against content hash d0b84915e093, 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.

claude/skills/otel_collector/SKILL.md · 400 lines

How it starts

The opening of the file, as written. The whole thing — 400 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 (Always Configure Both Protocols)

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318

Never bind to localhost in containers — SDKs in other pods can't reach 127.0.0.1.

For TLS: add tls: { cert_file: /certs/tls.crt, key_file: /certs/tls.key } under the protocol.

Prometheus

receivers:
  prometheus:
    config:
      scrape_configs:
        - job_name: 'kubernetes-pods'
          scrape_interval: 30s
          kubernetes_sd_configs:
            - role: pod
          relabel_configs:
            - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
              action: keep
              regex: true

Filelog (Container Logs)

receivers:
  filelog:
    start_at: end              # NEVER 'beginning' in prod — replays entire history
    include: [/var/log/pods/*/*/*.log]
    operators:
      - type: container
        id: container-parser
      - type: json_parser
        if: body matches "^\\{"

Host Metrics (DaemonSet)

receivers:
  hostmetrics:
    collection_interval: 60s
    scrapers:
      cpu:
      memory:
      disk:
      filesystem:
      network:
      # Omit 'process' unless needed — high cardinality

2. Processors (CRITICAL)

Mandatory Order

memory_limiter → resourcedetection → k8sattributes → resource → redaction → other transforms

memory_limiter (REQUIRED — Always First)

processors:
  memory_limiter:
    check_interval: 1s
    limit_mib: 512         # 80% of container memory limit
    spike_limit_mib: 128   # 25% of limit_mib

Do NOT Use Batch Processor

Read the full file on GitHub · 400 lines

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 · 400 lines · 56 tokens per session scan A d0b84915e093

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 56 tokens to every session and 2,359 once invoked, about $0.0002 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-08-30.

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.0A56Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code