[CASCL-1397] process: extend Cluster with `dd-cluster-info` data #483
All Vouch review confidence checks passed
Residual risk 0.37 = Change Risk (0.65) × (1 − Review Confidence (0.42)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 460 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.367
Shallow Review Depth
shallow_review_depth
0.344
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #483"
general
weight: 0.35
L3n41c
What does this PR do?
Extends the
ClusterandClusterNodeInfoprotobuf messages inproto/process/agent.prototo carry data sourced from thedd-cluster-infoConfigMap thatkubectl datadog autoscaling cluster installwrites at the end of its install flow.Per-node fields on
ClusterNodeInfo(12–14):nodeManager(string):fargate|karpenter|eksManagedNodeGroup|asg|standalone|unknownnodeManagerName(string): name of the managing entity (NodePool, ASG, Fargate profile, …)nodeManagerManagedByDatadog(bool)Cluster-wide fields on
Cluster(17–19):AutoscalingInfo autoscaling— wrapsClusterAutoscalerInfo,KarpenterInfo,EKSAutoModeInfoint64 clusterInfoGeneratedAtUnixNano— timestamp of the ConfigMap snapshotoneof cloudResourceId { string arn = 19; }— AWS EKS cluster ARN; the oneof keeps room forgkeResourceName/azureResourceIdlaterThe generated Go code in
process/agent.pb.goandprocess/agent.proto_builder.gois regenerated viadda inv codegen.all.Motivation
Jira: CASCL-1397 (parent epic CASCL-920).
Follow-up to CASCL-1304 (datadog-operator PRs #2945, #2980) which introduced the
dd-cluster-infoConfigMap. Until now this snapshot is consumed only by future migration tooling; this PR — together with the orchestrator-check change in DataDog/datadog-agent#51107 — makes the data flow to the Datadog back-end through the orchestrator check's syntheticClusterobject.Additional Notes
Cluster(16 fields) andClusterNodeInfo(11 fields) without renumbering anything.clusterNameandregionfromdd-cluster-infoare intentionally not added: they already exist inCollectorCluster.clusterNameand per-nodeClusterNodeInfo.region. The Agent will validate consistency and warn on mismatch.clusterArnis wrapped inoneof cloudResourceIdrather than added as a top-level string, so GKE/AKS equivalents fit later without bloat.Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
dda inv codegen.allregenerates the Go bindings cleanly from the proto.go test ./process/...passes locally with the regenerated code.kubectl datadog autoscaling cluster installdeployed.Reviewer's Checklist
Reviewers: please see the review guidelines.
[CASCL-1397]: https://datadoghq.atlassian.net/browse/CASCL-1397?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ