← Back to Pull requests

[procmgr] add all-in-one processes.d catalog #59208

Closed
unknown closed this pull request without merging on Nov 03, 2026 12:32 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 10:22 UTC
Author

What does this PR do?

Adds process definitions for the Linux all-in-one image under Dockerfiles/agent/processes.d/aio/. Each file mirrors the binary and command line that the matching s6 run script starts:

  • datadog-agent.yaml: the core agent, with restart: never and exit_with_supervisor: true

  • datadog-agent-trace.yaml, -process, -sysprobe, -security, -otel, -data-plane: auxiliaries with restart: on-failure, restart_sec: 2, start_limit_interval_sec: 10, and start_limit_burst: 5, each gated by condition_path_exists and config keys

  • datadog-agent-par-control.yaml and datadog-agent-action-executor.yaml: the definitions live in aio/. The top-level paths are symlinks to those files, so the s6 PAR entrypoint still loads only those two processes
  • The config gate table gains compliance_config.enabled and otelcollector.enabled, both defaulting to false, with env binding tests.

    s6 remains the entrypoint. Nothing in the image reads this directory yet.

    Motivation

    Container Agent still relies on s6-overlay as PID 1. These definitions are what dd-procmgrd needs to supervise the same binaries, once DD_PM_CONFIG_DIR points at aio/.

    The files sit in aio/ because load_configs does not recurse. An auto_start: true file at the top level would start a second core agent inside the s6 PAR split-mode service, so the top-level directory stays limited to the two PAR symlinks.

    Describe how you validated your changes

  • cargo fmt -p dd-procmgrd -- --check

  • cargo test -p dd-procmgrd --lib -- aio_ (6 passed, including the top-level symlink check)

  • //pkg/procmgr/rust:dd-procmgrd_test with the same filter under Bazel, passed before the trim
  • The tests load the shipped catalog through load_configs and check the core and auxiliary restart fields, the commands against the s6 run scripts, the condition_path_exists gates, and that the top-level PAR paths are symlinks into aio/.

    No container boot and no image build.

    Additional Notes

  • On Linux, trace-agent, process-agent, and security-agent are installed under /opt/datadog-agent/embedded/bin/, which is where the image PATH resolves them. The catalog uses those paths.

  • trace-loader is kept as the wrapper, matching the s6 trace run script.

  • compliance_config.enabled is included for security-agent even though the Windows template omits it, because the container binary also runs for compliance-only.

  • The Windows-only windows_crash_detection.enabled key is left out of the system-probe entry.
  • Diff: 319 lines (+239 / -80) across 3 files Reviewer: dd-gplassard Review duration: 7330m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 319 lines diff across 3 files
    0.40
    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.345
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #59208"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 40.4% (MEDIUM) · Higher = larger blast radius
    40.4%
    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: 16.0% · Safe to merge
    16.0%