feat(process): add option to submit all zombie processes individually #61168
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 · 288 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
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.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #61168"
general
weight: 0.35
oleroydatadog
What does this PR do?
Adds
process_config.enable_all_zombie_processes(defaultfalse), a backward-compatibility option for #60014.When it's on, the process check submits non-GPU zombie processes individually again, in both the standard and realtime payloads.
Precedence is settled once when the check loads its config, so
ignore_zombie_processes: truestill wins.The "submit this zombie on its own?" rule now lives in one helper shared by the two payload paths.
<details>
<summary>Functional changes</summary>
| Before | After |
| --- | --- |
| — | With
process_config.enable_all_zombie_processes: true, non-GPU zombie processes are again submitted individually in standard and realtime process payloads, as before #60014 || — | With that option and
process_config.ignore_zombie_processes: trueboth set, no zombie is submitted or counted on its parent, the same as withignore_zombie_processesalone |Unchanged: with the option off (the default), non-GPU zombies only count toward their parent, as after #60014. Parent zombie counts and rates, and GPU zombie submission and tags, are the same in every combination.
</details>
Motivation
#60014 stopped submitting non-GPU zombies individually, so monitors that match individual zombie processes stop firing.
This gives customers who rely on those monitors a way to keep them working. It's meant for that compatibility case only, which is what the setting's description and the release note say.
Describe how you validated your changes
TestProcessCheckZombieConfigControlsAggregationnow covers all 8 combinations ofignore_zombie_processes,enable_all_zombie_processesand realtime collection, asserting on both payload types. The realtime-only path (runRealtime) has its own cases. The new cases fail with the option's effect reverted.| Settings | Individual zombies in
/api/v1/collector| Parent zombie count || --- | --- | --- |
| default | 0 | 2 |
|
enable_all_zombie_processes: true| 2 (state Z) | 2 || both options
true| 0 | 0 (aggregation off) |