← Back to Pull requests

Add experimental kube checks runner default group support #3526

Open
unknown opened this pull request with 396 lines diff across 4 files
View on GitHub
unknown unknown commented on Sep 29, 2026 00:20 UTC
Author

What

Adds experimental cluster check runner groups: dedicated runner Deployments that own a set of cluster checks, so heavy checks like KSM core can be isolated from node agents and the general runners.

  • agent.datadoghq.com/experimental-cluster-checks-runner-groups: a JSON list of groups (name, checksInclude, optional override). Each group becomes its own runner Deployment.

  • agent.datadoghq.com/experimental-kube-checks-runner-default: "true": adds a built-in kube group (KSM core and the orchestrator check, 2 replicas). It works even with useClusterChecksRunners off, in which case node agents keep running the other cluster checks. Declaring your own kube group replaces the built-in one.
  • The operator passes the group definitions to the Cluster Agent (DD_CLUSTER_CHECKS_RUNNER_GROUPS, a JSON list such as [{"name":"kube","checks":["kubernetes_state_core","orchestrator"]}], matching the agent's cluster_checks.runner_groups from DataDog/datadog-agent#57079) and gives each group's pods their group name (DD_CLC_RUNNER_GROUP). The Cluster Agent then only sends claimed checks to their group. Changing a group only rolls the Cluster Agent, never the node agents.

    Groups are validated (unique names, non-empty checksInclude, no check claimed twice); an invalid annotation is ignored and logged. Component-level override.clusterChecksRunner also applies to group Deployments.

    Runner groups need Agent 7.86 or later (the first release supporting them, DataDog/datadog-agent#57079) on both the Cluster Agent and the runners. With an older Cluster Agent, groups are ignored; a group whose runner image is older is skipped. Either way it's logged, and the affected checks keep running as before. Images whose version can't be parsed (e.g. latest) are assumed recent enough.

    This is experimental and configured through annotations only: no CRD changes and no compatibility guarantees.

    Example

    apiVersion: datadoghq.com/v2alpha1
    kind: DatadogAgent
    metadata:
      name: datadog
      annotations:
        agent.datadoghq.com/experimental-kube-checks-runner-default: "true"
        agent.datadoghq.com/experimental-cluster-checks-runner-groups: |-
          [{"name":"http","checksInclude":["http_check"],"override":{"replicas":1}}]
    spec:
      features:
        clusterChecks:
          enabled: true
          useClusterChecksRunners: true
      override:
        clusterAgent:
          image:
            tag: 7.86.0
        clusterChecksRunner:
          image:
            tag: 7.86.0
    

    This creates a kube and an http runner Deployment next to the general runners, and sets:

  • on the Cluster Agent: DD_CLUSTER_CHECKS_RUNNER_GROUPS=[{"name":"kube","checks":["kubernetes_state_core","orchestrator"]},{"name":"http","checks":["http_check"]}]

  • on each group's runner pods: DD_CLC_RUNNER_GROUP=kube or DD_CLC_RUNNER_GROUP=http
  • Testing

  • Unit tests for the API helpers and validation, the clusterchecks/KSM/orchestrator features, and the group reconciler (mixed mode, built-in group replacement, overrides, cleanup).

  • End-to-end on kind still needs a re-run with this version together with the agent PR.
  • Agent side: DataDog/datadog-agent#57079 (merged)

    Diff: 396 lines (+297 / -99) across 4 files Reviewer: Mathew-Estafanous Review duration: 49198m
    All Vouch review confidence checks passed
    Residual risk 0.43 = Change Risk (0.73) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.73 · 396 lines diff across 4 files
    0.73
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    40%
    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.358
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.073
    Real PR Conversation Timeline
    1 comments
    "Review active on #3526"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 40.9% 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: 73.4% (HIGH) · Higher = larger blast radius
    73.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: 40.9% · Lower = rushed or shallow review
    40.9%
    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: 43.3% · Moderate risk
    43.3%