← Back to Pull requests

Set the DDOT converter features per collector and remove DD_HOSTNAME in the kube-stack values #517

Closed
unknown closed this pull request without merging on Nov 13, 2026 12:45 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 14:11 UTC
Author

What does this PR do?

Sets DD_OTELCOLLECTOR_CONVERTER_FEATURES per collector in the DDOT kube-stack values, so the DDOT converter only adds the components each collector needs, and removes the DD_HOSTNAME workaround.

| Collector | Converter features | Why |
|---|---|---|
| cluster (Deployment) | pprof,zpages | No infraattributes: the local tagger only knows the pods of this pod's node, so cluster-wide data would be tagged inconsistently. |
| daemon (DaemonSet) | infraattributes,pprof,zpages | infraattributes adds Datadog container and pod tags from the node-local tagger. |

Both lists leave out:

  • prometheus: the collectors' self-metrics are looped through OTLP, so the converter's auto-added scrape of :8888 fails every minute.

  • cumulativetodelta, health_check and datadog: already declared in the config.

  • ddflare: only used by the Agent's flare in connected mode.
  • The opentelemetry-kube-stack chart merges each collector onto defaultCRConfig with mergeOverwrite, which replaces lists instead of merging them. Each collector's env block therefore repeats DD_API_KEY and DD_SITE, as the host-profiler block already does.

    Changed files, all under guides/kubernetes/configuration/opentelemetry-kube-stack/:

  • ddot/values.yaml: moves DD_OTELCOLLECTOR_CONVERTER_FEATURES from defaultCRConfig to new env blocks on the cluster and daemon collectors, and removes DD_HOSTNAME from defaultCRConfig, as in values.yaml.tmpl below. ddot/examples//rendered/collector.yaml are updated.

  • values.yaml.tmpl (DDOT mode only): moves DD_OTELCOLLECTOR_CONVERTER_FEATURES from defaultCRConfig, where it was datadog,pprof,zpages,infraattributes for all collectors, to the cluster and daemon collectors. Removes DD_HOSTNAME, a workaround for "Error: unable to reliably determine the host name." on K3S with datadog/ddot-collector:7.82.3 that is no longer needed with 7.86.0-rc.5. values-ddot.yaml and examples//rendered-ddot/collector.yaml are regenerated. values-otlp-http.yaml is unchanged.
  • Motivation

    The cluster collector logged this error continuously:

    2026-11-10 13:01:17 UTC | OTELCOL | ERROR | (comp/otelcol/otlp/components/processor/infraattributesprocessor/cache.go:64 in tagsFor) | service.instance.id:52a7138b-b4eb-493a-a11d-9cf8b212f9ac,service.name:otel-agent,service.version:v0.163.0,otelcol.component.id:infraattributes/dd-autoconfigured,otelcol.component.kind:processor,otelcol.pipeline.id:metrics,otelcol.signal:metrics,entityID:,error:empty entity ID | Cannot get tags for entity
    

    Both collectors also logged a WARN every minute from prometheus/dd-autoconfigured failing to scrape http://0.0.0.0:8888/metrics.

    Testing

  • Deployed ddot/values.yaml on a local k3s (Rancher Desktop) cluster with datadog/ddot-collector:7.86.0-rc.5. After the upgrade, neither the infraattributes error nor the :8888 scrape warning appears in the collector logs.

  • ddot/values.yaml sets no DD_HOSTNAME for the collectors, and both run on k3s without the host name error, which supports removing it.

  • helm template renders DD_API_KEY, DD_SITE and DD_OTELCOLLECTOR_CONVERTER_FEATURES on both collectors.
  • The rendered examples were edited to only include the env var changes. Re-rendering locally with Helm v4.2.3 (CI pins v4.3.0) also produced unrelated blank-line churn, which is left out. If check-rendered-examples flags whitespace in examples/*/rendered-ddot, re-render with Helm v4.3.0.

    🤖 Generated with Claude Code

    Diff: 449 lines (+336 / -113) across 5 files Reviewer: agagniere Review duration: 4234m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.69) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.69 · 449 lines diff across 5 files
    0.69
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.366
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.069
    Real PR Conversation Timeline
    1 comments
    "Review active on #517"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.6% (HIGH) · Higher = larger blast radius
    68.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.1% · Safe to merge
    27.1%