Skip to content

feat: adding kata integration#47816

Draft
TheRayquaza wants to merge 1 commit intomainfrom
ml/kata-integration
Draft

feat: adding kata integration#47816
TheRayquaza wants to merge 1 commit intomainfrom
ml/kata-integration

Conversation

@TheRayquaza
Copy link

@TheRayquaza TheRayquaza commented Mar 13, 2026

What does this PR do?

  • Adding a new meta in Container entity types (this way I can query the store with my sandbox filter)
  • Adding the SandboxId in all CRI implementations (containerd, crio, dockerd, podman ...) so that Container entities have the right sandbox id
  • Adding a new go core check for kata
    • Scrapping open metrics from kata sockets (including sandbox_id)
    • Adding a sandbox<->container map update on event, this helps extend the kata metrics' tags using container_id

Motivation

Adding a new kata integration.

Previous work were proposed in integration-core and in this repo.
This integration makes more sense to be a go core check

Describe how you validated your changes

Additional Notes

@TheRayquaza TheRayquaza requested review from a team as code owners March 13, 2026 14:00
@TheRayquaza TheRayquaza requested a review from nathan-b March 13, 2026 14:00
@TheRayquaza TheRayquaza marked this pull request as draft March 13, 2026 14:00
@github-actions
Copy link
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@dd-octo-sts dd-octo-sts bot added internal Identify a non-fork PR team/container-platform The Container Platform Team team/agent-runtimes labels Mar 13, 2026
@github-actions github-actions bot added the medium review PR review might take time label Mar 13, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb82ddf282

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

}
switch event.Type {
case workloadmeta.EventTypeSet:
c.sandboxContainerID[ctr.SandboxID] = ctr.ID

Choose a reason for hiding this comment

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

P1 Badge Track all container IDs for each sandbox

A CRI pod sandbox ID is shared by every container in that sandbox, but this cache keeps only one containerID per sandboxID by overwriting on each set event. In multi-container pods (a common sidecar case), the “last event wins” behavior makes buildBaseTags query tags from an arbitrary container, so sandbox metrics can pick up unstable container-specific tags and be misattributed across containers over time.

Useful? React with 👍 / 👎.

Comment on lines +166 to +167
if !ok || ctr.SandboxID == "" {
continue

Choose a reason for hiding this comment

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

P2 Badge Delete sandbox mappings using container ID on unset events

This early-continue means unset events without SandboxID are ignored, so stale entries are never removed from sandboxContainerID. In this repo, runtime unset events are emitted with only EntityID (for example in containerd createDeletionEvent and CRI-O generateUnsetContainerEvent), so long-lived nodes with churn will accumulate stale mappings and can retain incorrect tag associations if sandbox IDs are reused.

Useful? React with 👍 / 👎.

@agent-platform-auto-pr
Copy link
Contributor

Go Package Import Differences

Baseline: f2b5102
Comparison: eb82ddf

binaryosarchchange
agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers/kata
agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers/kata
agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers/kata
agentdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers/kata
agentdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers/kata
iot-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers/kata
iot-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers/kata
heroku-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers/kata

@agent-platform-auto-pr
Copy link
Contributor

Files inventory check summary

File checks results against ancestor bffaa29b:

Results for datadog-agent_7.78.0~devel.git.574.eb82ddf.pipeline.102366246-1_amd64.deb:

Detected file changes:

1 Changed files:

  • opt/datadog-agent/embedded/bin/kinit:
    • Size changed: +11.73% (34.11 KiB -> 38.11 KiB)

@agent-platform-auto-pr
Copy link
Contributor

Static quality checks

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

Successful checks

Info

Quality gate Change Size (prev → curr → max)
agent_deb_amd64 +24.16 KiB (0.00% increase) 747.069 → 747.092 → 750.720
agent_deb_amd64_fips +24.22 KiB (0.00% increase) 705.414 → 705.438 → 711.230
agent_heroku_amd64 +24.16 KiB (0.01% increase) 311.778 → 311.802 → 320.580
agent_rpm_amd64 +24.16 KiB (0.00% increase) 747.052 → 747.076 → 750.690
agent_rpm_amd64_fips +24.22 KiB (0.00% increase) 705.398 → 705.422 → 711.210
agent_rpm_arm64 +20.19 KiB (0.00% increase) 724.945 → 724.964 → 732.890
agent_rpm_arm64_fips +24.16 KiB (0.00% increase) 686.260 → 686.284 → 694.440
agent_suse_amd64 +24.16 KiB (0.00% increase) 747.052 → 747.076 → 750.690
agent_suse_amd64_fips +24.22 KiB (0.00% increase) 705.398 → 705.422 → 711.210
agent_suse_arm64 +20.19 KiB (0.00% increase) 724.945 → 724.964 → 732.890
agent_suse_arm64_fips +24.16 KiB (0.00% increase) 686.260 → 686.284 → 694.440
docker_agent_amd64 +24.16 KiB (0.00% increase) 807.385 → 807.409 → 813.040
docker_agent_arm64 +20.18 KiB (0.00% increase) 810.098 → 810.118 → 819.570
docker_agent_jmx_amd64 +24.16 KiB (0.00% increase) 998.300 → 998.324 → 1003.920
docker_agent_jmx_arm64 +20.19 KiB (0.00% increase) 989.792 → 989.812 → 999.170
iot_agent_deb_amd64 +24.19 KiB (0.05% increase) 43.084 → 43.107 → 43.290
iot_agent_deb_arm64 +20.22 KiB (0.05% increase) 40.146 → 40.166 → 40.920
iot_agent_deb_armhf +20.1 KiB (0.05% increase) 40.886 → 40.906 → 41.030
iot_agent_rpm_amd64 +24.19 KiB (0.05% increase) 43.084 → 43.108 → 43.290
iot_agent_suse_amd64 +24.19 KiB (0.05% increase) 43.084 → 43.108 → 43.290
10 successful checks with minimal change (< 2 KiB)
Quality gate Current Size
docker_cluster_agent_amd64 203.690 MiB
docker_cluster_agent_arm64 218.164 MiB
docker_cws_instrumentation_amd64 7.142 MiB
docker_cws_instrumentation_arm64 6.689 MiB
docker_dogstatsd_amd64 38.643 MiB
docker_dogstatsd_arm64 36.939 MiB
dogstatsd_deb_amd64 29.863 MiB
dogstatsd_deb_arm64 28.016 MiB
dogstatsd_rpm_amd64 29.863 MiB
dogstatsd_suse_amd64 29.863 MiB
On-wire sizes (compressed)
Quality gate Change Size (prev → curr → max)
agent_deb_amd64 +26.39 KiB (0.01% increase) 174.465 → 174.491 → 177.700
agent_deb_amd64_fips +20.39 KiB (0.01% increase) 165.376 → 165.396 → 172.230
agent_heroku_amd64 +15.39 KiB (0.02% increase) 75.175 → 75.190 → 79.970
agent_rpm_amd64 -5.95 KiB (0.00% reduction) 176.472 → 176.466 → 180.780
agent_rpm_amd64_fips +20.47 KiB (0.01% increase) 168.035 → 168.055 → 173.370
agent_rpm_arm64 neutral 159.387 MiB → 161.610
agent_rpm_arm64_fips -38.22 KiB (0.02% reduction) 151.380 → 151.343 → 155.910
agent_suse_amd64 -5.95 KiB (0.00% reduction) 176.472 → 176.466 → 180.780
agent_suse_amd64_fips +20.47 KiB (0.01% increase) 168.035 → 168.055 → 173.370
agent_suse_arm64 neutral 159.387 MiB → 161.610
agent_suse_arm64_fips -38.22 KiB (0.02% reduction) 151.380 → 151.343 → 155.910
docker_agent_amd64 neutral 267.162 MiB → 271.240
docker_agent_arm64 +5.71 KiB (0.00% increase) 254.466 → 254.471 → 259.800
docker_agent_jmx_amd64 +12.75 KiB (0.00% increase) 335.805 → 335.818 → 339.870
docker_agent_jmx_arm64 +20.31 KiB (0.01% increase) 319.093 → 319.113 → 324.390
docker_cluster_agent_amd64 neutral 71.277 MiB → 72.920
docker_cluster_agent_arm64 neutral 66.938 MiB → 68.220
docker_cws_instrumentation_amd64 neutral 2.999 MiB → 3.330
docker_cws_instrumentation_arm64 neutral 2.729 MiB → 3.090
docker_dogstatsd_amd64 neutral 14.955 MiB → 15.820
docker_dogstatsd_arm64 neutral 14.285 MiB → 14.830
dogstatsd_deb_amd64 neutral 7.890 MiB → 8.790
dogstatsd_deb_arm64 neutral 6.774 MiB → 7.710
dogstatsd_rpm_amd64 neutral 7.901 MiB → 8.800
dogstatsd_suse_amd64 neutral 7.901 MiB → 8.800
iot_agent_deb_amd64 +7.76 KiB (0.07% increase) 11.358 → 11.365 → 12.040
iot_agent_deb_arm64 +25.09 KiB (0.25% increase) 9.669 → 9.693 → 10.450
iot_agent_deb_armhf +7.15 KiB (0.07% increase) 9.899 → 9.906 → 10.620
iot_agent_rpm_amd64 +5.86 KiB (0.05% increase) 11.375 → 11.381 → 12.060
iot_agent_suse_amd64 +5.86 KiB (0.05% increase) 11.375 → 11.381 → 12.060

@cit-pr-commenter-54b7da
Copy link

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: befdbab6-d348-4f70-b900-88c302b0d972

Baseline: f2b5102
Comparison: eb82ddf
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 -0.12 [-3.16, +2.92] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
quality_gate_metrics_logs memory utilization +1.06 [+0.83, +1.30] 1 Logs bounds checks dashboard
quality_gate_logs % cpu utilization +0.90 [-0.72, +2.52] 1 Logs bounds checks dashboard
tcp_syslog_to_blackhole ingress throughput +0.74 [+0.61, +0.87] 1 Logs
ddot_logs memory utilization +0.52 [+0.44, +0.59] 1 Logs
ddot_metrics memory utilization +0.50 [+0.32, +0.67] 1 Logs
otlp_ingest_logs memory utilization +0.31 [+0.20, +0.41] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization +0.20 [+0.14, +0.26] 1 Logs
quality_gate_idle memory utilization +0.17 [+0.11, +0.22] 1 Logs bounds checks dashboard
file_tree memory utilization +0.16 [+0.11, +0.21] 1 Logs
ddot_metrics_sum_delta memory utilization +0.09 [-0.09, +0.26] 1 Logs
file_to_blackhole_1000ms_latency egress throughput +0.01 [-0.42, +0.44] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.01 [-0.10, +0.09] 1 Logs
uds_dogstatsd_to_api ingress throughput -0.01 [-0.18, +0.17] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput -0.02 [-0.20, +0.17] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.02 [-0.09, +0.04] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.03 [-0.52, +0.47] 1 Logs
file_to_blackhole_500ms_latency egress throughput -0.04 [-0.43, +0.35] 1 Logs
docker_containers_cpu % cpu utilization -0.12 [-3.16, +2.92] 1 Logs
ddot_metrics_sum_cumulativetodelta_exporter memory utilization -0.12 [-0.35, +0.10] 1 Logs
quality_gate_idle_all_features memory utilization -0.15 [-0.19, -0.11] 1 Logs bounds checks dashboard
otlp_ingest_metrics memory utilization -0.15 [-0.31, +0.00] 1 Logs
docker_containers_memory memory utilization -0.26 [-0.33, -0.19] 1 Logs
ddot_metrics_sum_cumulative memory utilization -0.35 [-0.49, -0.22] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed observed_value links
docker_containers_cpu simple_check_run 10/10 729 ≥ 26
docker_containers_memory memory_usage 10/10 273.61MiB ≤ 370MiB
docker_containers_memory simple_check_run 10/10 725 ≥ 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.20GiB ≤ 1.20GiB
file_to_blackhole_100ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_500ms_latency memory_usage 10/10 0.22GiB ≤ 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 173.62MiB ≤ 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 489.09MiB ≤ 550MiB bounds checks dashboard
quality_gate_logs intake_connections 10/10 4 ≤ 6 bounds checks dashboard
quality_gate_logs memory_usage 10/10 203.40MiB ≤ 220MiB bounds checks dashboard
quality_gate_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 354.29 ≤ 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 414.73MiB ≤ 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_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.
  • 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_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_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_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.

Copy link
Contributor

@jeremy-hanna jeremy-hanna left a comment

Choose a reason for hiding this comment

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

👍 for agent-runtime owned files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Identify a non-fork PR medium review PR review might take time team/agent-runtimes team/container-platform The Container Platform Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants