Generate an otelcol-contrib Collector config (agent or gateway mode) with cardinality guardrails. Use when setting up an OpenTelemetry Collector.
Install
npx skillscat add radra23/otel-as-code-plugin/otel-collector Install via the SkillsCat registry.
otel-collector (Codex bridge)
Requires the otel-as-code repo. The
commands//skills//agents/files referenced below live there — if they're not present in your workspace, stop and tell the user to add the repo (see AGENTS.md).
Follow the canonical procedure in this repo — it is the single source of truth:
- Read
commands/otel-collector.md(repo root) and execute its steps. - Apply
skills/collector-topology/SKILL.mdfor pipeline topology, tail-sampling, and the
cardinality-guardrail patterns.
Args: $ARGUMENTS (e.g. gateway, --experimental, --public, --force,--confirm-remove-auth; default mode is agent).
Codex note: .codex/hooks.json enforces write-guard here — a denied overwrite of an existingotelcol-agent.yaml / otelcol-gateway.yaml means regenerate deliberately. --public adds
receiver auth (bearertokenauth); --force alone refuses to remove existing auth — pair it with--confirm-remove-auth to intentionally downgrade, or --public to keep it.