Skip to content

feat(health-platform): add modular issue registry and docker check#46008

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 28 commits intomainfrom
louis-cqrl/add-AH-issue-for-test
Feb 11, 2026
Merged

feat(health-platform): add modular issue registry and docker check#46008
gh-worker-dd-mergequeue-cf854d[bot] merged 28 commits intomainfrom
louis-cqrl/add-AH-issue-for-test

Conversation

@louis-cqrl
Copy link
Copy Markdown
Contributor

@louis-cqrl louis-cqrl commented Feb 6, 2026

What does this PR do?

  • Refactors remediations into “issue modules” (template + optional built-in check) with a unified registry.
  • Registers built-in health checks from modules at component startup (e.g., Docker socket permissions).
  • Moves issue/remediation code under impl/issues/* and wires Health Platform to build issues via the new registry.

Motivation

Make Health Platform production-ready by:

  • reliably emitting health reports via a forwarder,
  • simplifying how new issue types are added (single module = detection + remediation),
  • centralizing registration of templates and built-in checks.

Describe how you validated your changes

CI + VM QA

Additional Notes

  • The check-failure module is remediation-only (issues are reported externally by the collector).
  • The docker-permissions module includes a built-in periodic check (Linux/Windows only via build tags).

louis-cqrl and others added 19 commits January 13, 2026 15:47
Add a new diagnose suite "health-platform-issues" that displays health
platform issues in the `agent diagnose` command output.

Changes:
- Add HealthPlatformIssues constant to diagnose suite definitions
- Create diagnose.go in healthplatform/impl with Diagnose function
- Register health platform diagnose in agent run command
- Only display issues when health_platform.enabled is true
- Map issue severity to diagnose status (critical/high -> FAIL, others -> WARNING)
- Format full remediation including summary and numbered steps
@github-actions github-actions Bot added the medium review PR review might take time label Feb 6, 2026
@agent-platform-auto-pr
Copy link
Copy Markdown
Contributor

agent-platform-auto-pr Bot commented Feb 6, 2026

Static quality checks

✅ Please find below the results from static quality gates
Comparison made with ancestor f2a4385
📊 Static Quality Gates Dashboard
🔗 SQG Job
SOME SIZE DELTAS ARE N/A (ANCESTOR METRICS NOT YET AVAILABLE). RETRY JOB

Successful checks

Info

Quality gate Change Size (prev → curr → max)
agent_deb_amd64 N/A N/A → 754.385 → 756.330
agent_deb_amd64_fips N/A N/A → 714.487 → 716.820
agent_heroku_amd64 N/A N/A → 324.216 → 329.530
agent_msi N/A N/A → 663.055 → 1072.620
agent_rpm_amd64 N/A N/A → 754.368 → 756.300
agent_rpm_amd64_fips N/A N/A → 714.471 → 716.810
agent_rpm_arm64 N/A N/A → 732.846 → 738.640
agent_rpm_arm64_fips N/A N/A → 695.401 → 700.230
agent_suse_amd64 N/A N/A → 754.368 → 756.300
agent_suse_amd64_fips N/A N/A → 714.471 → 716.810
agent_suse_arm64 N/A N/A → 732.846 → 738.640
agent_suse_arm64_fips N/A N/A → 695.401 → 700.230
docker_agent_amd64 N/A N/A → 815.441 → 818.640
docker_agent_arm64 N/A N/A → 818.622 → 825.320
docker_agent_jmx_amd64 N/A N/A → 1006.353 → 1009.520
docker_agent_jmx_arm64 N/A N/A → 998.316 → 1004.920
docker_cluster_agent_amd64 N/A N/A → 180.979 → 181.200
docker_cluster_agent_arm64 N/A N/A → 196.809 → 198.490
docker_cws_instrumentation_amd64 N/A N/A → 7.135 → 7.180
docker_cws_instrumentation_arm64 N/A N/A → 6.689 → 6.920
docker_dogstatsd_amd64 N/A N/A → 38.453 → 39.380
docker_dogstatsd_arm64 N/A N/A → 36.749 → 37.940
dogstatsd_deb_amd64 N/A N/A → 29.669 → 30.610
dogstatsd_deb_arm64 N/A N/A → 27.833 → 29.110
dogstatsd_rpm_amd64 N/A N/A → 29.669 → 30.610
dogstatsd_suse_amd64 N/A N/A → 29.669 → 30.610
iot_agent_deb_amd64 N/A N/A → 42.834 → 43.290
iot_agent_deb_arm64 N/A N/A → 39.947 → 40.920
iot_agent_deb_armhf N/A N/A → 40.517 → 41.030
iot_agent_rpm_amd64 N/A N/A → 42.834 → 43.290
iot_agent_suse_amd64 N/A N/A → 42.834 → 43.290
On-wire sizes (compressed)
Quality gate Change Size (prev → curr → max)
agent_deb_amd64 N/A N/A → 184.415 → 185.360
agent_deb_amd64_fips N/A N/A → 176.282 → 178.780
agent_heroku_amd64 N/A N/A → 87.099 → 88.450
agent_msi N/A N/A → 143.266 → 143.300
agent_rpm_amd64 N/A N/A → 186.761 → 188.860
agent_rpm_amd64_fips N/A N/A → 178.273 → 179.710
agent_rpm_arm64 N/A N/A → 169.019 → 169.930
agent_rpm_arm64_fips N/A N/A → 162.325 → 163.610
agent_suse_amd64 N/A N/A → 186.761 → 188.860
agent_suse_amd64_fips N/A N/A → 178.273 → 179.710
agent_suse_arm64 N/A N/A → 169.019 → 169.930
agent_suse_arm64_fips N/A N/A → 162.325 → 163.610
docker_agent_amd64 N/A N/A → 276.992 → 278.130
docker_agent_arm64 N/A N/A → 264.364 → 266.760
docker_agent_jmx_amd64 N/A N/A → 345.648 → 346.740
docker_agent_jmx_arm64 N/A N/A → 328.991 → 331.370
docker_cluster_agent_amd64 N/A N/A → 63.923 → 64.510
docker_cluster_agent_arm64 N/A N/A → 60.185 → 61.170
docker_cws_instrumentation_amd64 N/A N/A → 2.994 → 3.330
docker_cws_instrumentation_arm64 N/A N/A → 2.726 → 3.090
docker_dogstatsd_amd64 N/A N/A → 14.878 → 15.820
docker_dogstatsd_arm64 N/A N/A → 14.216 → 14.830
dogstatsd_deb_amd64 N/A N/A → 7.840 → 8.790
dogstatsd_deb_arm64 N/A N/A → 6.726 → 7.710
dogstatsd_rpm_amd64 N/A N/A → 7.851 → 8.800
dogstatsd_suse_amd64 N/A N/A → 7.851 → 8.800
iot_agent_deb_amd64 N/A N/A → 11.235 → 12.040
iot_agent_deb_arm64 N/A N/A → 9.602 → 10.450
iot_agent_deb_armhf N/A N/A → 9.804 → 10.620
iot_agent_rpm_amd64 N/A N/A → 11.253 → 12.060
iot_agent_suse_amd64 N/A N/A → 11.253 → 12.060

@louis-cqrl louis-cqrl changed the base branch from main to louis-cqrl/add-AH-issue-diagnose February 6, 2026 15:47
@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da Bot commented Feb 6, 2026

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: e343dbbb-b86d-4758-90e3-8c0ebf1f8bac

Baseline: f2a4385
Comparison: fa84df6
Diff

Optimization Goals: ✅ No significant changes detected

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +3.36 [+0.21, +6.51] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +3.36 [+0.21, +6.51] 1 Logs
ddot_metrics memory utilization +1.72 [+1.52, +1.93] 1 Logs
quality_gate_logs % cpu utilization +0.92 [-0.59, +2.42] 1 Logs bounds checks dashboard
otlp_ingest_logs memory utilization +0.25 [+0.15, +0.36] 1 Logs
ddot_metrics_sum_cumulativetodelta_exporter memory utilization +0.22 [-0.01, +0.45] 1 Logs
file_to_blackhole_0ms_latency egress throughput +0.16 [-0.31, +0.63] 1 Logs
file_to_blackhole_1000ms_latency egress throughput -0.00 [-0.43, +0.43] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput -0.00 [-0.15, +0.15] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.00 [-0.05, +0.04] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.01 [-0.10, +0.08] 1 Logs
file_to_blackhole_500ms_latency egress throughput -0.02 [-0.40, +0.36] 1 Logs
uds_dogstatsd_to_api ingress throughput -0.03 [-0.16, +0.10] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization -0.04 [-0.09, +0.02] 1 Logs
file_tree memory utilization -0.05 [-0.10, +0.00] 1 Logs
quality_gate_idle memory utilization -0.06 [-0.10, -0.02] 1 Logs bounds checks dashboard
otlp_ingest_metrics memory utilization -0.08 [-0.23, +0.08] 1 Logs
docker_containers_memory memory utilization -0.18 [-0.26, -0.11] 1 Logs
quality_gate_idle_all_features memory utilization -0.20 [-0.24, -0.16] 1 Logs bounds checks dashboard
ddot_metrics_sum_cumulative memory utilization -0.24 [-0.41, -0.08] 1 Logs
tcp_syslog_to_blackhole ingress throughput -0.28 [-0.36, -0.20] 1 Logs
quality_gate_metrics_logs memory utilization -0.46 [-0.68, -0.25] 1 Logs bounds checks dashboard
ddot_logs memory utilization -0.52 [-0.58, -0.45] 1 Logs
ddot_metrics_sum_delta memory utilization -1.00 [-1.18, -0.82] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
docker_containers_cpu simple_check_run 10/10
docker_containers_memory memory_usage 10/10
docker_containers_memory simple_check_run 10/10
file_to_blackhole_0ms_latency lost_bytes 10/10
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency lost_bytes 10/10
file_to_blackhole_1000ms_latency memory_usage 10/10
file_to_blackhole_100ms_latency lost_bytes 10/10
file_to_blackhole_100ms_latency memory_usage 10/10
file_to_blackhole_500ms_latency lost_bytes 10/10
file_to_blackhole_500ms_latency memory_usage 10/10
quality_gate_idle intake_connections 10/10 bounds checks dashboard
quality_gate_idle memory_usage 10/10 bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 bounds checks dashboard
quality_gate_logs intake_connections 10/10 bounds checks dashboard
quality_gate_logs lost_bytes 10/10 bounds checks dashboard
quality_gate_logs memory_usage 10/10 bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 bounds checks dashboard
quality_gate_metrics_logs lost_bytes 10/10 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 bounds checks dashboard

Explanation

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

CI Pass/Fail Decision

Passed. All Quality Gates passed.

  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.

Base automatically changed from louis-cqrl/add-AH-issue-diagnose to main February 9, 2026 08:22
@louis-cqrl louis-cqrl added changelog/no-changelog No changelog entry needed qa/done QA done before merge and regressions are covered by tests labels Feb 9, 2026
@dd-octo-sts dd-octo-sts Bot added the internal Identify a non-fork PR label Feb 9, 2026
@github-actions github-actions Bot added short review PR is simple enough to be reviewed quickly and removed medium review PR review might take time labels Feb 9, 2026
@github-actions github-actions Bot added long review PR is complex, plan time to review it and removed short review PR is simple enough to be reviewed quickly labels Feb 9, 2026
@agent-platform-auto-pr
Copy link
Copy Markdown
Contributor

agent-platform-auto-pr Bot commented Feb 9, 2026

Go Package Import Differences

Baseline: f2a4385
Comparison: fa84df6

binaryosarchchange
agentlinuxamd64
+3, -3
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/checkfailure
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/dockerpermissions
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/checkfailure
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/dockerpermissions
agentlinuxarm64
+3, -3
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/checkfailure
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/dockerpermissions
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/checkfailure
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/dockerpermissions
agentwindowsamd64
+3, -3
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/checkfailure
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/dockerpermissions
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/checkfailure
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/dockerpermissions
agentdarwinamd64
+3, -3
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/checkfailure
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/dockerpermissions
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/checkfailure
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/dockerpermissions
agentdarwinarm64
+3, -3
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/checkfailure
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/dockerpermissions
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/checkfailure
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/dockerpermissions
iot-agentlinuxamd64
+3, -3
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/checkfailure
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/dockerpermissions
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/checkfailure
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/dockerpermissions
iot-agentlinuxarm64
+3, -3
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/checkfailure
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/dockerpermissions
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/checkfailure
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/dockerpermissions
heroku-agentlinuxamd64
+3, -3
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/checkfailure
-github.com/DataDog/datadog-agent/comp/healthplatform/impl/remediations/dockerpermissions
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/checkfailure
+github.com/DataDog/datadog-agent/comp/healthplatform/impl/issues/dockerpermissions

@louis-cqrl louis-cqrl changed the title feat(health-platform): add forwarder feat(health-platform): add modular issue registry and docker check Feb 9, 2026
@louis-cqrl louis-cqrl marked this pull request as ready for review February 9, 2026 10:42
@louis-cqrl louis-cqrl requested a review from a team as a code owner February 9, 2026 10:42

const (
// IssueID is the unique identifier for check failure issues
IssueID = "check-execution-failure"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ question
What happens when multiple checks fail? Do we report them all with the same issueID? Should we format the name at runtime, including an id for the single failing check?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good question, I faced the same question while coding this PR, imo we should always have 1 issue = 1 ID, if a check report multiple issue they should have different IDs

I also would like to avoid edge case when the same check fails consistently to report multiple time the issue, it should just say "this issue is still ongoing", moreover we could detect check flakiness at point if the a check goes from new -> ongoing -> resolved -> new etc...

Start to implement this logic here as well: #46069, some coat metric will follow in an other PR

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do agree, let's keep IssueId as unique per host, so that we can use host + IssueId for the fingerprint

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you going to change the id to include the check name in #46069?

@louis-cqrl louis-cqrl requested a review from pducolin February 11, 2026 07:05
Copy link
Copy Markdown
Collaborator

@pducolin pducolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok if you'll implement dynamic and unique issue ids in a follow up


const (
// IssueID is the unique identifier for check failure issues
IssueID = "check-execution-failure"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you going to change the id to include the check name in #46069?

@louis-cqrl
Copy link
Copy Markdown
Contributor Author

Are you going to change the id to include the check name in #46069?

@pducolin yes

if exists && !reachable {
// Docker socket exists but is not reachable - permission issue
return &healthplatform.IssueReport{
IssueId: IssueID,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 suggestion
This issue should report one single issue per id. Here if multiple sockets are unreachable, we will overwrite them

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed ✅

@louis-cqrl
Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented Feb 11, 2026

View all feedbacks in Devflow UI.

2026-02-11 15:18:18 UTC ℹ️ Start processing command /merge


2026-02-11 15:18:28 UTC ℹ️ MergeQueue: waiting for PR to be ready

This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
It will be added to the queue as soon as checks pass and/or get approvals. View in MergeQueue UI.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2026-02-11 15:58:23 UTC ℹ️ MergeQueue: merge request added to the queue

The expected merge time in main is approximately 1h (p90).


2026-02-11 18:31:51 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit 857e6c8 into main Feb 11, 2026
308 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the louis-cqrl/add-AH-issue-for-test branch February 11, 2026 18:31
@github-actions github-actions Bot added this to the 7.77.0 milestone Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed internal Identify a non-fork PR long review PR is complex, plan time to review it qa/done QA done before merge and regressions are covered by tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants