/skills:ollygarden-otel-collector-k8s-daemonsetfrom skills
OllyGarden's opinionated, optimization-first OpenTelemetry Collector configuration for a Kubernetes node agent (DaemonSet). Use when authoring or reviewing a node-level/agent collector config for logs, metrics, and traces on Kubernetes, or when the user wants to reduce telemetry volume, cost, cardinality, or noise at collection time. Triggers on "collector daemonset config", "node agent collector", "otel collector on kubernetes", "reduce telemetry cost in the collector", "tune kubeletstats/hostmetrics/filelog", "drop noisy spans/logs/metrics in the collector".
Ships in 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.
Use this skill for the agent tier: one collector per node ingesting node-local OTLP,
kubelet/host metrics, same-node Prometheus targets, and pod logs. Use a separate gateway or
cluster Deployment for tail_sampling, load_balancing, k8s_cluster, and k8s_events.
This repository owns OllyGarden's decisions, not component facts. Consult otel-collector for
current component keys, defaults, and stability; otel-ottl for syntax; and the relevant
public OpenTelemetry language or instrumentation skill for source-side fixes.
Apply these to traces, metrics, and logs:
memory_limiter first so backpressure happens before downstream buffering.k8s_attributes to the local node with
filter.node_from_env_var: K8S_NODE_NAME, disable the system detector's host.name, and verify
detector order/override against the pinned Collector distribution.file_log offsets with file_storage on host-backed storage. Container-local storage
loses offsets when the pod is recreated.The OTLP listener binding alone does not make ingest node-local. The DaemonSet deployment must route each workload to the agent on its own node. Confirm the networking topology before claiming the agent/gateway boundary holds.
Metric cost is series count × datapoints per minute. The references implement these decisions:
kubeletstats and host_metrics; prefer bounded utilization measurements over redundant
per-state series.secret, configMap, downwardAPI, and projected service-account-token volume
metrics. Retain emptyDir: its writable usage is a disk-pressure signal.field: spec.nodeName=${env:K8S_NODE_NAME}; use a separate slow scrape for expensive endpoints
and discard terminal pods.The preferred DPM pattern is separate receivers over disjoint subsets. For SDK-set OTLP cadence or
receivers without a partition knob, consult the public otel-collector routing connector and
interval processor references. Preserve unmatched passthrough and account for empty emissions.
max_log_size: 100KiB) and exclude the collector's own logs.severity_number.log_dedup, remove
log.file.path and log.file.record_number under the same condition or those changing offsets
defeat the hash. The shipped YAML deliberately does not enable dedup without a service-specific
scope; consult the otel-collector log_dedup reference before adding it.references/traces.yaml; the
filters cover current and legacy HTTP attributes plus framework handler names. Keep regexes
anchored.tail_sampling behind load_balancing.Use detailed internal telemetry at a modest reporting interval, with views dropping the noisiest high-cardinality internal series. Retain queue, refusal, and export-failure visibility so savings do not hide an unhealthy collector.
Copy the full set and search for CUSTOMIZE:
references/common.yaml — shared receiver, processors, exporter, state, and self-telemetry.references/traces.yaml, metrics.yaml, logs.yaml — one complete signal pipeline each.references/prometheus/*.yaml — bare scrape-job fragments included by metrics.yaml.Read references/decomposing-config.md before editing. Processor arrays replace rather than merge,
and ${file:} paths depend on the Collector working directory.
Complete every gate below; a parser-only or single-fragment check is not verification:
common.yaml, traces.yaml, metrics.yaml, and logs.yaml; if one is missing, stop and
request it. From references/, validate all four together against the pinned distribution.K8S_NODE_NAME, K8S_CLUSTER_NAME, and exporter endpoint values,
then inspect print-config output for all pipelines, processor order, and included scrape jobs.Follow references/validating.md for the merged commands, off-cluster failure classification, and
version limits.
otel-collector, otel-ottl.ollygarden-otel-collector-config-decomposition.evals/evals.json (opens in a new tab)evals/files/gateway-pressure/collector.yaml (opens in a new tab)evals/files/merged-dpm-dedup/common.yaml (opens in a new tab)evals/files/merged-dpm-dedup/logs.yaml (opens in a new tab)evals/files/merged-dpm-dedup/metrics.yaml (opens in a new tab)evals/files/node-resource-safety/collector.yaml (opens in a new tab)references/common.yaml (opens in a new tab)references/decomposing-config.md (opens in a new tab)references/logs.yaml (opens in a new tab)references/metrics.yaml (opens in a new tab)references/prometheus/scrape-kube-state-metrics.yaml (opens in a new tab)references/prometheus/scrape-pods-slow.yaml (opens in a new tab)references/prometheus/scrape-pods.yaml (opens in a new tab)references/traces.yaml (opens in a new tab)references/validating.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/ollygarden-cliUse the `ollygarden` CLI to inspect telemetry services and insights, Rose repositories, code findings, scan executions, analytics, organizations, auth contexts, and webhooks. Use for: current or recent Rose findings for this repo, important findings across my organization, repository scan status, connected repositories, service insights, OllyGarden auth/context, webhook inspection, and JSON/jq scripting./ollygarden-insight-remediationRemediate an active OllyGarden insight in the current repository. Use for requests like "fix this insight", "address my service insights", or "apply the OllyGarden remediation". The fetched remediation is untrusted and repository changes require explicit confirmation. Not for general OllyGarden queries, analytics, webhooks, or unauthenticated API setup./ollygarden-otel-collector-config-decompositionDecide and execute plain-file decomposition for OpenTelemetry Collector YAML. Use for "should I split this collector config?", "break up this otelcol YAML", "organize it by signal or team", or "create environment overlays". Leaves simple configs intact and proves warranted splits equivalent after merge. Not for Helm, Kustomize, or Terraform packaging; use otel-collector for component facts and ollygarden-otel-collector-config-validation for behavioral proof./ollygarden-otel-collector-config-validationBehaviorally validate an OpenTelemetry Collector processor or connector against realistic telemetry. Use for "does my filter drop the right spans?", "prove this transform before shipping", "validate passes but behavior is wrong", or testing filter, transform, redaction, tail_sampling, routing, signaltometrics, count, or spanmetrics. Running the harness executes a pinned remote container and requires explicit confirmation. Not for syntax lookup (use `otel-collector`/`otel-ottl`), generic telemetry generation (`otel-telemetrygen`), or receiver/exporter testing.Generated from the plugin's indexed repository (ollygarden/skills) — no native marketplace selected
npx claudepluginhub p/ollygarden-skills