/platform-extras-skills:opentelemetry-configuration-validationfrom platform-extras-skills
Validates OpenTelemetry Collector pipeline configs before deployment — checks that receivers/processors/exporters are wired into service.pipelines, reviews sampling rates, resource attributes, and processor ordering to prevent silent data loss.
Ships in platform-extras-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.
None: SKILL.md is the whole skill.
An OpenTelemetry Collector config that parses as valid YAML and starts
without error can still be functionally wrong in ways that only surface as
a quiet gap in a dashboard weeks later — a processor defined at the top
level but never referenced inside a specific signal's service.pipelines
block, a memory_limiter sized against a different environment's traffic,
a tail-sampling policy that unintentionally discards the very requests an
on-call engineer needs during an incident, or a resource attribute typo
that silently splits one service's telemetry into two differently-named
services in every downstream backend. None of these produce a Collector
startup error. This skill covers validating a Collector config before
it's deployed — structural checks, pipeline-wiring verification, sampling-
rate review, and resource-attribute correctness — as a distinct, narrower
concern from designing the pipeline in the first place, which is covered
in
opentelemetry-instrumentation-and-collector-configuration
and assumed already understood here.
receivers, processors, exporters, or service.pipelines
blocks).memory_limiter, a resource-attribute mismatch) as a health
check, not only after an incident.values.yaml or a
templated fragment (render it first if deployed via Helm/templating,
the same discipline as validating any templated infrastructure config).otelcol/otelcol-contrib binary (matching the distribution and
version actually deployed) available locally or in CI to run the
Collector's own config-validation mode without needing a full running
fleet.:8888/metrics by default) for the post-deploy confirmation step —
static validation reduces risk but does not replace watching real
behavior against real traffic.memory_limiter, batch, tail_sampling, and the various
exporters actually control if unfamiliar; this skill assumes that
context rather than re-explaining it.Run the Collector's own structural validation before anything
else — this parses the config and confirms every component name
resolves to a component actually compiled into the distribution in
use, catching typos and distribution mismatches (e.g. referencing the
loki exporter against a core-only build that doesn't include it):
otelcol-contrib validate --config=otel-collector-config.yaml
For Helm-deployed Collectors, render the final config first — the raw
values.yaml is not what the Collector process actually receives:
helm template otel-collector open-telemetry/opentelemetry-collector \
-f values-production.yaml --show-only templates/configmap-agent.yaml \
> rendered-otel-config.yaml
otelcol-contrib validate --config=rendered-otel-config.yaml
Confirm every declared receiver/processor/exporter is actually
referenced inside service.pipelines for the signal it's meant to
affect — this is the single most common silent-drop mistake, and
structural validation in step 1 does not catch it, since a component
defined at the top level but never wired into a pipeline is still
perfectly valid YAML:
# quick manual cross-check: list every top-level component name,
# then confirm each appears somewhere under service.pipelines
yq '.receivers | keys' otel-collector-config.yaml
yq '.processors | keys' otel-collector-config.yaml
yq '.exporters | keys' otel-collector-config.yaml
yq '.service.pipelines' otel-collector-config.yaml
Treat any top-level component name that doesn't appear in at least one
service.pipelines.<signal> list as a blocking review finding, not a
harmless unused declaration — it usually means someone intended to
route a signal somewhere and the wiring step was simply forgotten.
Verify memory_limiter is present and first in every pipeline's
processor list, sized with real headroom under the container/host
memory limit — a missing or undersized memory_limiter, or one placed
after batch/other processors, is the most common cause of
unexplained data loss under load:
yq '.service.pipelines.traces.processors[0]' otel-collector-config.yaml
# expect: "memory_limiter"
Compare limit_mib/spike_limit_mib against the container's actual
memory request/limit — a limit_mib set close to or above the pod's
memory limit gives the limiter no room to act before the container is
OOMKilled by the runtime instead.
Review sampling configuration for what it actually discards, not just its stated percentage. A probabilistic/baseline sampling rate that looks reasonable in isolation can still silently drop the specific traces an investigation would need if error/latency-based policies aren't layered on top:
tail_sampling:
policies:
- name: sample-errors
type: status_code
status_code: { status_codes: [ERROR] }
- name: sample-slow
type: latency
latency: { threshold_ms: 500 }
- name: sample-baseline
type: probabilistic
probabilistic: { sampling_percentage: 10 }
Warning: a bare probabilistic sampler with no error/latency policy layered above it will, on average, discard 90% of the exact failing/slow requests an on-call engineer needs during an incident — confirm every sampling config guarantees errors and high-latency requests are always kept, with the probabilistic rate applied only to the remaining "boring" baseline traffic. Review this every time a sampling percentage changes, not only when it's first configured.
Check resource attributes for consistency, not just presence. A
typo'd or environment-inconsistent service.name/
deployment.environment doesn't error — it silently creates a second,
differently-named identity for what should be the same service in
every downstream backend:
# confirm the same service reports a consistent service.name across
# every instance/replica hitting this Collector
curl -s 'http://<TEMPO>/api/search?tags=service.name' | jq
Cross-check any resource processor upsert/insert actions in the
Collector config against what the application's own
OTEL_RESOURCE_ATTRIBUTES sets — an upsert at the Collector
silently overriding an app-set value can be intentional (environment
tagging) or an accidental collision; confirm which before deploying.
Confirm exporter reliability settings exist for anything that can
burst — an exporter with no sending_queue/retry_on_failure
configured drops data on any transient backend hiccup instead of
buffering through it:
yq '.exporters.[].sending_queue' otel-collector-config.yaml
yq '.exporters.[].retry_on_failure' otel-collector-config.yaml
Flag any production exporter missing both as under-configured for real-world backend blips (a Tempo/Loki/Prometheus remote-write restart, a network partition) rather than assuming the happy path is the only path.
Wire structural + wiring validation into CI so a bad config fails the PR instead of failing quietly at deploy time:
# GitHub Actions example
- name: Validate OTel Collector config
run: |
docker run --rm -v "${{ github.workspace }}/otel-collector-config.yaml:/etc/otelcol/config.yaml" \
otel/opentelemetry-collector-contrib:0.105.0 validate --config=/etc/otelcol/config.yaml
- name: Check every component is pipeline-wired
run: ./scripts/check_otel_pipeline_wiring.sh otel-collector-config.yaml
The wiring check (step 2) is easy to script as a small lint step (diff
the set of top-level component names against the set referenced under
service.pipelines) so it runs automatically on every PR rather than
depending on a reviewer noticing by eye.
After deploying, confirm the config behaves as validated using the Collector's own internal telemetry — static validation reduces risk but doesn't replace watching real ingestion/export behavior:
curl -s http://<OTEL_COLLECTOR>:8888/metrics | grep -E \
'otelcol_processor_(refused|dropped)_spans_total|otelcol_exporter_(send_failed|queue_size)'
Warning: a Collector pipeline can silently and continuously drop spans/metrics/logs (a misconfigured processor, an exhausted exporter queue, a
memory_limiterrefusing data under sustained load) with no default alert firing anywhere — unlessotelcol_processor_dropped_*andotelcol_exporter_send_failed_*are explicitly scraped and alerted on, this failure mode is invisible until someone notices a gap during an actual investigation. Treat wiring an alert on these metrics as part of shipping the pipeline, not an optional follow-up.
validate (or the Docker equivalent) in CI on every PR touching
Collector config — treat a failing structural check the same as a
failing unit test.values.yaml directly — always render the
actual templated config first, since that's what the Collector process
receives.service.pipelines.<signal> list) as an automated CI
lint, not a manual reviewer habit — it is the single mistake structural
validation cannot catch and the single most common cause of silently
missing telemetry.memory_limiter against the actual container memory limit with
real headroom, and confirm it's first in every pipeline's processor
list on every review, not just when first configured.otelcol_processor_dropped_*/otelcol_exporter_send_failed_*
as a standing dashboard/alert, not just when someone reports missing
telemetry — silent drops are otherwise invisible until an investigation
needs the very data that was dropped.service.name, a
Collector-side upsert colliding with an app-set value) as a real bug,
not a cosmetic issue — it fragments one service's telemetry into
multiple identities across every downstream backend.Symptom: validate passes cleanly and the Collector starts without
error, but a specific signal (often traces) never reaches its intended
backend even though metrics/logs from the same service work fine.
Fix: validate only checks that named components resolve and the
YAML is structurally sound, not that every component is actually
referenced inside service.pipelines for the relevant signal (step 2)
— this is exactly the mistake structural validation misses since an
orphaned component is still valid config. Cross-check the
top-level component list against service.pipelines explicitly.
Symptom: The Collector silently drops data under real production
load, with no error in application logs and no obvious config mistake
on read-through.
Fix: memory_limiter is either missing, undersized relative to the
container's actual memory limit, or not first in the processor chain
(step 3) — none of which fail validate. Confirm ordering and sizing
explicitly, and watch otelcol_processor_refused_spans_total after any
change.
Symptom: A tail-sampling change is deployed to "reduce storage cost," and during the next incident the on-call engineer can't find any trace for the specific failing requests they need. Fix: The sampling policy applied a flat probabilistic rate with no error/latency policy layered above it (step 4), so most of the failing requests were dropped along with the "boring" baseline traffic that was the actual intended target for reduction. Add explicit error-status and latency-threshold policies ahead of the probabilistic baseline, and re-review the change with "what would this drop during an incident" as the explicit test, not just the storage-cost delta.
Symptom: A dashboard shows the same logical service split across
two entries (e.g. checkout-service and checkout_service, or
checkout-service and unknown_service), even though only one service
is actually deployed.
Fix: A resource.name typo or inconsistency between what the
application sets via OTEL_RESOURCE_ATTRIBUTES and what a Collector-
side resource processor upserts (step 5) creates two distinct
service identities in every downstream backend. Standardize the exact
attribute value in one place (ideally the application's own resource
configuration) and treat any Collector-side override as a deliberate,
reviewed decision, not an incidental default.
Symptom: A brief backend outage (Tempo/Loki/Prometheus remote-write
restart) causes a permanent gap in telemetry for that window, instead
of the Collector catching up once the backend recovers.
Fix: The affected exporter has no sending_queue/
retry_on_failure configured (step 6), so it drops rather than buffers
during the outage. Add both with a queue size sized to survive the
expected outage duration at current throughput.
Scenario: A PR proposes lowering the tail-sampling baseline rate from
25% to 5% "to cut Tempo storage cost," and separately adds a new
attributes/pii-scrub processor intended to strip a sensitive header from
span attributes.
Run structural validation first:
otelcol-contrib validate --config=otel-collector-config.yaml
Passes — both changes are structurally valid.
Run the pipeline-wiring cross-check:
yq '.service.pipelines.traces.processors' otel-collector-config.yaml
Reveals attributes/pii-scrub was added under processors: at the top
level but not added to service.pipelines.traces.processors — the
new scrubbing rule would have done nothing, silently shipping the
sensitive header downstream despite the PR's stated intent. Flagged as
a blocking finding; fixed by adding it to the pipeline's processor
list, ahead of batch.
Review the sampling change against step 4's "what does this discard" test:
- name: sample-baseline
type: probabilistic
- probabilistic: { sampling_percentage: 25 }
+ probabilistic: { sampling_percentage: 5 }
Confirmed the existing config already has sample-errors and
sample-slow policies ahead of the baseline policy, so the change only
reduces sampling of already-successful, fast requests — not the traces
an incident investigation would need. Approved as-is.
Post-deploy, otelcol_processor_dropped_spans_total and
otelcol_exporter_send_failed_spans_total are checked and remain flat,
confirming the fixed pipeline wiring and the sampling change both
behave as validated, not just as configured.
loki exporter feeds.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin platform-extras-skills16 skills in this plugin
/backstage-developer-portalGuides building an internal developer portal with Backstage — authoring catalog-info.yaml to register services in the software catalog, setting up TechDocs for docs-as-code, writing Software Templates to scaffold new services, and understanding the plugin architecture. Use when a user asks to "register a service in Backstage", "write a catalog- info.yaml", "set up TechDocs", "create a Backstage software template for scaffolding new repos", "add a Backstage plugin", or "build an internal developer portal."
/distributed-tracing-with-tempo-and-jaegerGuides configuring Grafana Tempo or Jaeger as the distributed tracing backend — trace storage backend selection and retention, sampling strategy at the backend/collector level (head-based vs. tail-based), and trace-to-metrics/trace-to-logs correlation so a trace ID can pivot directly into a log line or a metrics exemplar. Use when the user asks to "set up Tempo," "configure Jaeger storage," "set trace retention," "configure trace-to-logs correlation in Grafana," "design a sampling strategy for traces," or "query traces with TraceQL." This is the tracing *backend/storage* layer — instrumenting applications and configuring the OpenTelemetry Collector that feeds this backend is covered separately in opentelemetry-instrumentation-and-collector-configuration.
/fluent-bit-configuration-validationValidates Fluent Bit pipeline configuration syntax and tests the INPUT/FILTER/OUTPUT pipeline against sample log lines before a production rollout — dry-run checks, parser testing, and route/Match verification. Use when a user asks to "validate this Fluent Bit config before deploying," "test my Fluent Bit parser against sample logs," "will this Fluent Bit change break log routing," "check this Fluent Bit config in CI," or reports logs silently missing/misrouted after a Fluent Bit config change.
/fluent-bit-log-forwarding-configurationConfigures Fluent Bit as a lightweight log forwarder — INPUT sources (`tail`, `systemd`, Kubernetes container logs), FILTER stages (`kubernetes` metadata enrichment, `parser`, `grep`, `modify`, `nest`/`lift`), and OUTPUT routing to Loki, Elasticsearch/OpenSearch, or S3, including multiple outputs via tags/`Match` and backpressure/ buffering settings. Use when the user asks to "set up Fluent Bit," "forward Kubernetes pod logs to Loki/Elasticsearch/S3," "write a Fluent Bit parser for my log format," "route different logs to different outputs," or "Fluent Bit is dropping logs / backing up."
/incident-investigation-using-metrics-logs-tracesGuides correlating Prometheus metrics, log queries, and distributed traces together during a live incident investigation — using each signal's strengths to narrow from "something is wrong" to a specific root cause faster than any single signal alone. Use when a user asks to "investigate this incident using our metrics and logs," "find the root cause across dashboards, logs, and traces," "correlate this latency spike with logs and a trace," "pivot from an alert to the actual failing request," or is actively triaging a live production issue and needs a systematic cross-signal approach rather than guessing which dashboard to check next.
/karpenter-cluster-autoscalingGuides configuring Karpenter for Kubernetes node autoscaling — NodePool and EC2NodeClass (or equivalent) provisioning, consolidation and bin-packing behavior, Spot/On-Demand mixing, and how Karpenter compares to and can replace the Kubernetes Cluster Autoscaler. Use when a user asks to "set up Karpenter", "write a NodePool spec", "reduce node cost via consolidation/bin-packing", "mix Spot and On-Demand nodes", "choose between Karpenter and Cluster Autoscaler", or "debug why pods are stuck Pending / a node won't scale down."
Other plugins' skills for the same job