Skip to content

[AGENTRUN-1124] Replace gopsutil fork with upstream where possible#47700

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomainfrom
pgimalac/gopsutil-cleanup
Mar 13, 2026
Merged

[AGENTRUN-1124] Replace gopsutil fork with upstream where possible#47700
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomainfrom
pgimalac/gopsutil-cleanup

Conversation

@pgimalac
Copy link
Member

@pgimalac pgimalac commented Mar 11, 2026

What does this PR do?

Replace the gopsutil fork with upstream where possible, and isolate the remaining uses.
See below for the impact of some of the changes.

The fork is now only used on Darwin for live process collection, I'll look into that in a follow-up.

Motivation

Remove the fork as much as possible.

Describe how you validated your changes

CI

Additional Notes

Changes with behavioral impact:

  • host.PlatformInformation() on Darwin: PlatformFamily changes from always "darwin" to either "Standalone Workstation" or "Server".
  • host.PlatformInformation() on Windows: version field previously returned "10.0.19041 Build 19041" (WMI). Now calls KernelVersion() instead, returning "10.0.19041.x Build 19041.x" (RtlGetVersion, same format, adds UBR patch revision).
  • host.BootTime() on Linux (test only): upstream uses /proc/uptime float arithmetic in Docker/LXC containers instead of the integer btime from /proc/stat, so the test assertion is relaxed to within 1 second.

No behavior changes:

  • host.BootTime() on Windows: different underlying API (GetTickCount64 vs WMI), same result.
  • host.KernelVersion() on Linux: uname() syscall vs /proc/sys/kernel/osrelease, same value.
  • host.PlatformInformation() on Linux: upstream v4 respects HOST_ETC identically to the fork, same results for all supported distros.
  • host.Info() on Linux: same fields and values, stale comment about missing containerized environment support removed.
  • process.MemoryMaps(): struct literal replaced with NewProcess(), same behavior.

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Mar 11, 2026

Go Package Import Differences

Baseline: 2d4c8db
Comparison: 470f021

binaryosarchchange
agentlinuxamd64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
agentlinuxarm64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
agentwindowsamd64
+0, -6
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
-github.com/StackExchange/wmi
agentdarwinamd64
+0, -1
-github.com/DataDog/gopsutil/host
agentdarwinarm64
+0, -1
-github.com/DataDog/gopsutil/host
iot-agentlinuxamd64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
iot-agentlinuxarm64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
heroku-agentlinuxamd64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
cluster-agentlinuxamd64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
cluster-agentlinuxarm64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
cluster-agent-cloudfoundrylinuxamd64
+0, -1
-github.com/DataDog/gopsutil/host
cluster-agent-cloudfoundrylinuxarm64
+0, -1
-github.com/DataDog/gopsutil/host
dogstatsdlinuxamd64
+0, -1
-github.com/DataDog/gopsutil/host
dogstatsdlinuxarm64
+0, -1
-github.com/DataDog/gopsutil/host
process-agentlinuxamd64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
process-agentlinuxarm64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
process-agentwindowsamd64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
-github.com/StackExchange/wmi
process-agentdarwinamd64
+0, -1
-github.com/DataDog/gopsutil/host
process-agentdarwinarm64
+0, -1
-github.com/DataDog/gopsutil/host
heroku-process-agentlinuxamd64
+0, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
security-agentlinuxamd64
+1, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
+github.com/shirou/gopsutil/v4/host
security-agentlinuxarm64
+1, -5
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/host
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
+github.com/shirou/gopsutil/v4/host
security-agentwindowsamd64
+0, -6
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
-github.com/StackExchange/wmi
-github.com/shirou/w32
sbomgenlinuxamd64
+1, -1
-github.com/DataDog/gopsutil/host
+github.com/shirou/gopsutil/v4/host
sbomgenlinuxarm64
+1, -1
-github.com/DataDog/gopsutil/host
+github.com/shirou/gopsutil/v4/host
system-probelinuxamd64
+0, -4
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
system-probelinuxarm64
+0, -4
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
system-probewindowsamd64
+0, -6
-github.com/DataDog/gopsutil/cpu
-github.com/DataDog/gopsutil/mem
-github.com/DataDog/gopsutil/net
-github.com/DataDog/gopsutil/process
-github.com/StackExchange/wmi
-github.com/shirou/w32
otel-agentlinuxamd64
+0, -1
-github.com/DataDog/gopsutil/host
otel-agentlinuxarm64
+0, -1
-github.com/DataDog/gopsutil/host
full-host-profilerlinuxamd64
+0, -1
-github.com/DataDog/gopsutil/host
full-host-profilerlinuxarm64
+0, -1
-github.com/DataDog/gopsutil/host
installerlinuxamd64
+0, -1
-github.com/DataDog/gopsutil/host
installerlinuxarm64
+0, -1
-github.com/DataDog/gopsutil/host
privateactionrunnerlinuxamd64
+0, -1
-github.com/DataDog/gopsutil/host
privateactionrunnerlinuxarm64
+0, -1
-github.com/DataDog/gopsutil/host

@github-actions github-actions bot added medium review PR review might take time and removed long review PR is complex, plan time to review it labels Mar 11, 2026
Comment on lines -14 to +15
// difference between methods for collecting macOS platform, kernel version
// between shirou and Datadog psutil
"github.com/DataDog/gopsutil/host"
"github.com/shirou/gopsutil/v4/cpu"
"github.com/shirou/gopsutil/v4/host"
Copy link
Member Author

@pgimalac pgimalac Mar 11, 2026

Choose a reason for hiding this comment

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

This has a side effect: the PlatformFamily field changes from "darwin" to either "Standalone Workstation" or "Server", but the Platform field is still "darwin", so it seems like an improvement to me, but I can change to keep the same values as previously

Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM. In the processes pipeline we don't actually process either the PlatformFamily or Platform field in our backend. We only use name.

https://github.com/search?q=repo%3ADataDog%2Fdd-go+OS.family&type=code

OS.Name https://github.com/DataDog/dd-go/blob/59d9c8a7beba271c60abe4a559b7e871de6ab69a/process/store/es_index.go#L846

@pgimalac pgimalac force-pushed the pgimalac/gopsutil-cleanup branch from dbeb0be to 470f021 Compare March 11, 2026 09:29
@agent-platform-auto-pr
Copy link
Contributor

Files inventory check summary

File checks results against ancestor 2d4c8db1:

Results for datadog-agent_7.78.0~devel.git.498.470f021.pipeline.101814285-1_amd64.deb:

No change detected

@agent-platform-auto-pr
Copy link
Contributor

Static quality checks

✅ Please find below the results from static quality gates
Comparison made with ancestor 2d4c8db
📊 Static Quality Gates Dashboard
🔗 SQG Job

Successful checks

Info

Quality gate Change Size (prev → curr → max)
agent_deb_amd64 -133.31 KiB (0.02% reduction) 746.927 → 746.797 → 750.720
agent_deb_amd64_fips -117.09 KiB (0.02% reduction) 705.263 → 705.149 → 711.230
agent_heroku_amd64 -36.31 KiB (0.01% reduction) 311.730 → 311.694 → 320.580
agent_msi -136.5 KiB (0.02% reduction) 609.803 → 609.670 → 1062.520
agent_rpm_amd64 -133.31 KiB (0.02% reduction) 746.911 → 746.781 → 750.690
agent_rpm_amd64_fips -117.09 KiB (0.02% reduction) 705.247 → 705.133 → 711.210
agent_rpm_arm64 -173.25 KiB (0.02% reduction) 724.798 → 724.628 → 732.890
agent_rpm_arm64_fips -113.12 KiB (0.02% reduction) 686.139 → 686.028 → 694.440
agent_suse_amd64 -133.31 KiB (0.02% reduction) 746.911 → 746.781 → 750.690
agent_suse_amd64_fips -117.09 KiB (0.02% reduction) 705.247 → 705.133 → 711.210
agent_suse_arm64 -173.25 KiB (0.02% reduction) 724.798 → 724.628 → 732.890
agent_suse_arm64_fips -113.12 KiB (0.02% reduction) 686.139 → 686.028 → 694.440
docker_agent_amd64 -113.18 KiB (0.01% reduction) 807.253 → 807.142 → 813.040
docker_agent_arm64 -109.12 KiB (0.01% reduction) 809.941 → 809.834 → 819.570
docker_agent_jmx_amd64 -113.19 KiB (0.01% reduction) 998.168 → 998.058 → 1003.920
docker_agent_jmx_arm64 -109.12 KiB (0.01% reduction) 989.635 → 989.528 → 999.170
docker_cluster_agent_amd64 -28.28 KiB (0.01% reduction) 203.665 → 203.637 → 206.270
docker_cluster_agent_arm64 -64.28 KiB (0.03% reduction) 218.100 → 218.038 → 220.000
docker_dogstatsd_amd64 -16.12 KiB (0.04% reduction) 38.631 → 38.615 → 39.380
dogstatsd_deb_amd64 -20.12 KiB (0.07% reduction) 29.855 → 29.835 → 30.610
dogstatsd_deb_arm64 -20.16 KiB (0.07% reduction) 28.008 → 27.988 → 29.110
dogstatsd_rpm_amd64 -20.12 KiB (0.07% reduction) 29.855 → 29.835 → 30.610
dogstatsd_suse_amd64 -20.12 KiB (0.07% reduction) 29.855 → 29.835 → 30.610
iot_agent_deb_amd64 -40.31 KiB (0.09% reduction) 43.068 → 43.029 → 43.290
iot_agent_deb_arm64 -32.28 KiB (0.08% reduction) 40.126 → 40.095 → 40.920
iot_agent_deb_armhf -44.21 KiB (0.11% reduction) 40.870 → 40.827 → 41.030
iot_agent_rpm_amd64 -40.31 KiB (0.09% reduction) 43.068 → 43.029 → 43.290
iot_agent_suse_amd64 -40.31 KiB (0.09% reduction) 43.068 → 43.029 → 43.290
3 successful checks with minimal change (< 2 KiB)
Quality gate Current Size
docker_cws_instrumentation_amd64 7.135 MiB
docker_cws_instrumentation_arm64 6.689 MiB
docker_dogstatsd_arm64 36.938 MiB
On-wire sizes (compressed)
Quality gate Change Size (prev → curr → max)
agent_deb_amd64 -106.26 KiB (0.06% reduction) 174.463 → 174.359 → 177.700
agent_deb_amd64_fips -49.2 KiB (0.03% reduction) 165.333 → 165.285 → 172.230
agent_heroku_amd64 -9.29 KiB (0.01% reduction) 75.165 → 75.155 → 79.970
agent_msi -60.0 KiB (0.04% reduction) 138.043 → 137.984 → 146.220
agent_rpm_amd64 -14.62 KiB (0.01% reduction) 176.419 → 176.405 → 180.780
agent_rpm_amd64_fips +19.0 KiB (0.01% increase) 168.062 → 168.080 → 173.370
agent_rpm_arm64 -61.14 KiB (0.04% reduction) 159.302 → 159.242 → 161.610
agent_rpm_arm64_fips -16.08 KiB (0.01% reduction) 151.411 → 151.396 → 155.910
agent_suse_amd64 -14.62 KiB (0.01% reduction) 176.419 → 176.405 → 180.780
agent_suse_amd64_fips +19.0 KiB (0.01% increase) 168.062 → 168.080 → 173.370
agent_suse_arm64 -61.14 KiB (0.04% reduction) 159.302 → 159.242 → 161.610
agent_suse_arm64_fips -16.08 KiB (0.01% reduction) 151.411 → 151.396 → 155.910
docker_agent_amd64 -50.52 KiB (0.02% reduction) 267.145 → 267.096 → 271.240
docker_agent_arm64 -45.76 KiB (0.02% reduction) 254.443 → 254.398 → 259.800
docker_agent_jmx_amd64 -47.74 KiB (0.01% reduction) 335.789 → 335.742 → 339.870
docker_agent_jmx_arm64 -21.66 KiB (0.01% reduction) 319.064 → 319.043 → 324.390
docker_cluster_agent_amd64 -15.5 KiB (0.02% reduction) 71.287 → 71.272 → 72.920
docker_cluster_agent_arm64 neutral 66.914 MiB → 68.220
docker_cws_instrumentation_amd64 neutral 2.995 MiB → 3.330
docker_cws_instrumentation_arm64 neutral 2.727 MiB → 3.090
docker_dogstatsd_amd64 -7.4 KiB (0.05% reduction) 14.947 → 14.940 → 15.820
docker_dogstatsd_arm64 -11.16 KiB (0.08% reduction) 14.284 → 14.273 → 14.830
dogstatsd_deb_amd64 -4.52 KiB (0.06% reduction) 7.887 → 7.882 → 8.790
dogstatsd_deb_arm64 -4.62 KiB (0.07% reduction) 6.772 → 6.768 → 7.710
dogstatsd_rpm_amd64 -5.97 KiB (0.07% reduction) 7.898 → 7.892 → 8.800
dogstatsd_suse_amd64 -5.97 KiB (0.07% reduction) 7.898 → 7.892 → 8.800
iot_agent_deb_amd64 -15.14 KiB (0.13% reduction) 11.357 → 11.342 → 12.040
iot_agent_deb_arm64 -7.47 KiB (0.08% reduction) 9.665 → 9.658 → 10.450
iot_agent_deb_armhf -8.23 KiB (0.08% reduction) 9.895 → 9.887 → 10.620
iot_agent_rpm_amd64 -13.46 KiB (0.12% reduction) 11.373 → 11.360 → 12.060
iot_agent_suse_amd64 -13.46 KiB (0.12% reduction) 11.373 → 11.360 → 12.060

@cit-pr-commenter-54b7da
Copy link

cit-pr-commenter-54b7da bot commented Mar 11, 2026

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 5bf66e49-f8b3-43b0-b64a-01e665c02192

Baseline: f833cb1
Comparison: 9ebd458
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 +4.87 [+1.77, +7.97] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +4.87 [+1.77, +7.97] 1 Logs
ddot_metrics_sum_cumulative memory utilization +0.58 [+0.44, +0.72] 1 Logs
otlp_ingest_logs memory utilization +0.45 [+0.35, +0.54] 1 Logs
ddot_logs memory utilization +0.34 [+0.27, +0.40] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization +0.21 [+0.15, +0.27] 1 Logs
ddot_metrics memory utilization +0.09 [-0.08, +0.27] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.08 [-0.32, +0.48] 1 Logs
file_to_blackhole_100ms_latency egress throughput +0.04 [-0.06, +0.13] 1 Logs
quality_gate_idle_all_features memory utilization +0.03 [-0.01, +0.07] 1 Logs bounds checks dashboard
quality_gate_metrics_logs memory utilization +0.03 [-0.20, +0.27] 1 Logs bounds checks dashboard
docker_containers_memory memory utilization +0.02 [-0.05, +0.10] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.02 [-0.18, +0.22] 1 Logs
ddot_metrics_sum_delta memory utilization +0.01 [-0.16, +0.18] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.10, +0.09] 1 Logs
file_to_blackhole_1000ms_latency egress throughput -0.01 [-0.44, +0.42] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput -0.02 [-0.23, +0.20] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.03 [-0.55, +0.49] 1 Logs
quality_gate_idle memory utilization -0.24 [-0.29, -0.19] 1 Logs bounds checks dashboard
file_tree memory utilization -0.43 [-0.48, -0.37] 1 Logs
otlp_ingest_metrics memory utilization -0.48 [-0.64, -0.32] 1 Logs
ddot_metrics_sum_cumulativetodelta_exporter memory utilization -0.49 [-0.71, -0.27] 1 Logs
tcp_syslog_to_blackhole ingress throughput -1.38 [-1.54, -1.22] 1 Logs
quality_gate_logs % cpu utilization -4.54 [-6.20, -2.87] 1 Logs bounds checks dashboard

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed observed_value links
docker_containers_cpu simple_check_run 10/10 688 ≥ 26
docker_containers_memory memory_usage 10/10 274.70MiB ≤ 370MiB
docker_containers_memory simple_check_run 10/10 712 ≥ 26
file_to_blackhole_0ms_latency memory_usage 10/10 0.19GiB ≤ 1.20GiB
file_to_blackhole_0ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_1000ms_latency memory_usage 10/10 0.23GiB ≤ 1.20GiB
file_to_blackhole_1000ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_100ms_latency memory_usage 10/10 0.19GiB ≤ 1.20GiB
file_to_blackhole_100ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_500ms_latency memory_usage 10/10 0.21GiB ≤ 1.20GiB
file_to_blackhole_500ms_latency missed_bytes 10/10 0B = 0B
quality_gate_idle intake_connections 10/10 3 = 3 bounds checks dashboard
quality_gate_idle memory_usage 10/10 172.89MiB ≤ 175MiB bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 3 = 3 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 490.83MiB ≤ 550MiB bounds checks dashboard
quality_gate_logs intake_connections 10/10 4 ≤ 6 bounds checks dashboard
quality_gate_logs memory_usage 10/10 202.21MiB ≤ 220MiB bounds checks dashboard
quality_gate_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 408.07 ≤ 2000 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 3 ≤ 6 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 391.26MiB ≤ 475MiB bounds checks dashboard
quality_gate_metrics_logs missed_bytes 10/10 0B = 0B 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_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, 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_metrics_logs, bounds check memory_usage: 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 intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.

@pgimalac pgimalac marked this pull request as ready for review March 11, 2026 13:44
@pgimalac pgimalac requested review from a team as code owners March 11, 2026 13:44
@pgimalac pgimalac requested a review from matthewleese March 11, 2026 13:44
Copy link
Contributor

@bitomaxsp bitomaxsp left a comment

Choose a reason for hiding this comment

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

Overall looks good, but I can't assess if affected like PlatformFamily is critical or not.

Comment on lines -14 to +15
// difference between methods for collecting macOS platform, kernel version
// between shirou and Datadog psutil
"github.com/DataDog/gopsutil/host"
"github.com/shirou/gopsutil/v4/cpu"
"github.com/shirou/gopsutil/v4/host"
Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM. In the processes pipeline we don't actually process either the PlatformFamily or Platform field in our backend. We only use name.

https://github.com/search?q=repo%3ADataDog%2Fdd-go+OS.family&type=code

OS.Name https://github.com/DataDog/dd-go/blob/59d9c8a7beba271c60abe4a559b7e871de6ab69a/process/store/es_index.go#L846

@pgimalac
Copy link
Member Author

/merge

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

gh-worker-devflow-routing-ef8351 bot commented Mar 13, 2026

View all feedbacks in Devflow UI.

2026-03-13 15:20:20 UTC ℹ️ Start processing command /merge


2026-03-13 15:20:25 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 58m (p90).


2026-03-13 15:53:03 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot merged commit 9ebd458 into main Mar 13, 2026
443 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot deleted the pgimalac/gopsutil-cleanup branch March 13, 2026 15:53
@github-actions github-actions bot added this to the 7.78.0 milestone Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants