← Back to Pull requests

Add metadata for AMD GPU metrics #26104

Merged
zhuminyi merged 1 files (28 lines) on Nov 24, 2026 17:08 UTC
View on GitHub
zhuminyi zhuminyi commented on Nov 19, 2026 07:29 UTC
Author

What does this PR do?

Adds metadata for the GPU metrics of AMD GPUs to gpu/metadata.csv. The rows come from the Agent GPU metric spec, generated with dda inv gpu.update-metadata.

New AMD-only metrics (10):

  • gpu.xgmi.throughput.data.rx, gpu.xgmi.throughput.data.tx, and their .total variants

  • gpu.clock.throttle_reasons.vr_thermal_slowdown, gpu.clock.throttle_reasons.hbm_thermal_slowdown

  • gpu.pci.recovery_counter, gpu.pci.nak_sent_counter, gpu.pci.nak_received_counter

  • gpu.errors.ecc.deferred.total
  • AMD notes are added to the descriptions of 9 existing metrics that the AMD check also emits:

  • gpu.gr_engine_active, gpu.sm_active, gpu.dram_active

  • gpu.clock.throttle_reasons.sw_power_cap, sw_thermal_slowdown, hw_slowdown

  • gpu.pci.replay_counter

  • gpu.errors.ecc.corrected.total, gpu.errors.ecc.uncorrected.total
  • To fit the 400-character limit, gpu.errors.ecc.corrected.total loses the clause "While these errors do not immediately impact application correctness". Only AMD rows change. Generator differences in NVIDIA and TPU rows are left out.

    Motivation

    The Agent's amd_gpu check emits these metrics, but gpu/metadata.csv has no AMD entries yet. They come from:

  • DataDog/datadog-agent#59844 (merged, Agent 7.87.0): XGMI throughput, the throttle reasons, gpu.pci.replay_counter, and the activity metrics

  • DataDog/datadog-agent#60843 (merged, Agent 7.87.0): the ECC totals

  • DataDog/datadog-agent#60831 (merged, Agent 7.87.0): VR and HBM thermal throttling, and the PCIe recovery and NAK counters
  • All three are merged, and every row matches the Agent spec on main, except that the Cloud TPU sentences of gpu.dram_active, gpu.gr_engine_active and gpu.sm_active are left out.

    This is a metadata-only change, so it has no changelog entry. ddev validate metadata gpu passes.

    Checklist before requesting review

  • I self-reviewed the full diff, and this description matches the final change

  • Tests cover the change, or this description explains why none are needed

  • Automated review comments, including Codex review, were addressed or answered

  • I, the human author, understand this change, can explain it to reviewers, and believe it meets the repository standards
  • Diff: 28 lines (+19 / -9) across 1 files Reviewer: martavicentenavarro Review duration: 7779m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.23) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.23 · 28 lines diff across 1 files
    0.23
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.79 · 5 substantive comment(s)
    0.79
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    84%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.201
    Real PR Conversation Timeline
    12 items
    datadog-official[bot] datadog-official[bot] commented on Nov 19, 2026 07:36 UTC
    Bot

    <a target='_blank' href='https://app.datadoghq.com/ci/pipeline-executions?query=ci_level%3Ajob+%40ci.status%3Aerror+%40git.commit.sha%3Ac9004454c223644cb5baf29af9175b0ca3b91ae5&referrer=pr-comment&start=1795531529000'><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/pipelines-error.svg"/><img src="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/pipelines-error-light.svg" alt="Pipelines" align="center" /></picture></a>

    ❌ Errors

    Your PR has failed checks. Please review the issues below and take necessary action before merging.

    🚦 1 Pipeline job failed

    <blockquote>
    <div>

    <details open>
    <summary>Validate repository | Run Validations / Validate</summary>

    <a href="https://app.datadoghq.com/ci/pull-request/Z2l0aHViLmNvbS9kYXRhZG9nL2ludGVncmF0aW9ucy1jb3JlLzI2MTA0?referrer=pr-comment&amp;buildId=AwAAAaIOItrY7kzHZQAAABhBYUlPSXRyWUFBRDFQLW5saG8yU2JmNVEAAAAkMDFhMjBlMmQtOThkOC00NGFmLTgyNDEtNTc3MmI4MDlmYmNlAABYxg&amp;ciFailurePanel=job">View more details</a> · <a href="https://github.com/DataDog/integrations-core/actions/runs/45423525667/job/138549207422">View in GitHub Actions</a>
    </details>
    </div>
    </blockquote>

    Useful? React with 👍 / 👎

    <sub>
    This comment will be updated automatically if new data arrives. <br />
    🔗 Commit SHA: c900445 | <a href="https://docs.datadoghq.com/integrations/guide/source-code-integration/#pr-comments">Docs</a> | <a href="https://app.datadoghq.com/ci/pull-request/Z2l0aHViLmNvbS9kYXRhZG9nL2ludGVncmF0aW9ucy1jb3JlLzI2MTA0?referrer=pr-comment">View more details</a> | Give us <a href="https://dd.enterprise.slack.com/archives/C07E3U2QRMM">feedback</a>!
    </sub>

    cit-pr-commenter-54b7da[bot] cit-pr-commenter-54b7da[bot] commented on Nov 19, 2026 13:59 UTC
    Bot

    evalya-impact-summary

    Evalya CI impact

    Impact analysis: RUN-ALL — every test task will run
    Trigger:         empty diff (default branch, scheduled run, or shallow-clone fallback)
    Test tasks:      0 (all selected)
    Publish tasks:   6 (always emitted)
    Changed files:   0
    

    Full impact report
    Learn more about CI impact filtering

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Nov 24, 2026 15:54 UTC
    Bot

    <!-- codex-pull-request-review-summary -->
    <!-- codex-review-state:v1 {"code_review":{"commit_sha":"c9004454c223644cb5baf29af9175b0ca3b91ae5","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} -->

    <details>
    <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary>

    This comment shows the latest Codex review activity on this pull request.

    | Review | Status | Commit | Review trigger |
    | --- | --- | --- | --- |
    | 📝 Code Review | ✅ Completed <relative-time datetime="2026-11-24T15:55:59.622977Z">2026-11-24T15:55:59.622977Z</relative-time> | c900445 | Draft marked ready |

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    Your team has set up Codex to 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" or "@codex security review".
  • Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    </details>

    </details>

    martavicentenavarro martavicentenavarro approved these changes on Nov 24, 2026 15:55 UTC
    Approved Reviewer

    Approved these changes.

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 24, 2026 15:55 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🔵 Needs a closer look

    The external Agent GPU specification and amd_gpu implementation are unavailable in this checkout, preventing confirmation of AMD metric units, collection conditions, counter-reset behavior, hardware restrictions, and activity semantics.

    No open issues 🎉

    <details>
    <summary><strong>What changed in this PR</strong></summary>

    Adds AMD GPU metric metadata to the shared GPU catalog for metrics emitted by the Agent’s amd_gpu check. This is a metadata-only change; collection behavior is unchanged.

    Changes:

  • Adds 10 AMD-only metrics covering XGMI throughput, thermal throttling, PCIe counters, and deferred ECC errors.

  • Clarifies AMD-specific behavior for nine existing metrics.

  • Shortens the corrected ECC description to stay within the 400-character limit.
  • | File | Description |
    | ---- | ----------- |
    | gpu/​metadata.csv | Adds AMD metric entries and clarifies vendor-specific semantics. |
    </details>

    <sub>Review effort: Balanced</sub>

    zhuminyi zhuminyi commented on Nov 24, 2026 15:57 UTC
    Author

    /merge

    gh-worker-devflow-routing-ef8351[bot] gh-worker-devflow-routing-ef8351[bot] commented on Nov 24, 2026 15:57 UTC
    Bot

    <!-- "FeedbackWorkflowId":"3b378af4-35e3-4b8b-a9ec-a7bbd0626c47_39" -->
    View all feedbacks in Devflow UI.

    2026-11-24 15:57:22 UTC :information_source: Start processing command /merge

    ---
    2026-11-24 15:57:24 UTC :x: MergeQueue

    The merge queue is disabled for this repository/branch.

    dd-octo-sts[bot] dd-octo-sts[bot] commented on Nov 24, 2026 15:57 UTC
    Bot

    Validation Report

    All 22 validations passed.

    <details>
    <summary>Show details</summary>

    | Validation | Description | Status |
    |---|---|---|
    | agent-reqs | Verify check versions match the Agent requirements file | ✅ |
    | ci | Validate CI configuration and code coverage settings | ✅ |
    | codeowners | Validate every integration has a CODEOWNERS entry | ✅ |
    | config | Validate default configuration files against spec.yaml | ✅ |
    | dep | Verify dependency pins are consistent and Agent-compatible | ✅ |
    | http | Validate integrations use the HTTP wrapper correctly | ✅ |
    | imports | Validate check imports do not use deprecated modules | ✅ |
    | integration-style | Validate check code style conventions | ✅ |
    | jmx-metrics | Validate JMX metrics definition files and config | ✅ |
    | labeler | Validate PR labeler config matches integration directories | ✅ |
    | legacy-signature | Validate no integration uses the legacy Agent check signature | ✅ |
    | license-headers | Validate Python files have proper license headers | ✅ |
    | licenses | Validate third-party license attribution list | ✅ |
    | metadata | Validate metadata.csv metric definitions | ✅ |
    | models | Validate configuration data models match spec.yaml | ✅ |
    | openmetrics | Validate OpenMetrics integrations disable the metric limit | ✅ |
    | package | Validate Python package metadata, naming, and wheel contents | ✅ |
    | pr-description | Validate the pull request checklist and visible description length | ✅ |
    | qa-label | Validate the pull request declares whether it needs QA for the next Agent release | ✅ |
    | readmes | Validate README files have required sections | ✅ |
    | saved-views | Validate saved view JSON file structure and fields | ✅ |
    | version | Validate version consistency between package and changelog | ✅ |

    </details>

    View full run

    datadog-official[bot] datadog-official[bot] commented on Nov 24, 2026 15:58 UTC
    Reviewer

    <img src="https://img.shields.io/badge/BITS%20CODE%20REVIEW-PASS-1a7f37?labelColor=632CA6&style=for-the-badge&logo=data:image/svg%2Bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48cGF0aCBkPSJNNjMuNTUsNzQuMzJhNTUuMiw1NS4yLDAsMCwxLTEwLTguMzJjLS4zMS0uMjMtLjI2LTEuMjUtLjI2LTEuMjVBNTUuODEsNTUuODEsMCwwLDAsNjguOTQsNzMuMWExMi43NCwxMi43NCwwLDAsMCw5LjgxLS44MywyNSwyNSwwLDAsMCw3LjUz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kxWiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg%3D%3D" alt="Bits Code Review: PASS" height="36"/>

    <details>
    <summary>More details</summary>

    The AMD metadata additions passed CSV structure and consistency checks. Collector behavior and exact equivalence with the Agent metadata generator could not be independently verified.

    </details>
    Was this helpful? React 👍 or 👎

    <sub>Open Bits AI session</sub>

    <sub>🤖 Bits Code Review · Commit c900445</sub>

    <!-- autotest-meta model=gpt-6.1-sol engine=codex reasoning_effort=high verdict=PASS ddrs_bucket=unknown session_id=3ce7b880-479b-4bc5-9c15-66ffaf4bb7a1 -->

    <!-- datadog-code-review reviewer-id=bad90057-5c12-4101-ad47-d91c9dff0f90 -->
    <!-- datadog-autotest:v1:prod -->
    <!-- datadog-autotest-delivery:v1:prod:9bc3c68afabf5f58a68c2ed25861c8ef6f9e93ea9d28f981b54df238ae6be06d:bundle -->

    zhuminyi zhuminyi commented on Nov 24, 2026 17:05 UTC
    Author

    /merge

    gh-worker-devflow-routing-ef8351[bot] gh-worker-devflow-routing-ef8351[bot] commented on Nov 24, 2026 17:05 UTC
    Bot

    <!-- "FeedbackWorkflowId":"a12c9b1c-3bdd-4a8b-a583-3e6d5524542c_39" -->
    View all feedbacks in Devflow UI.

    2026-11-24 17:05:50 UTC :information_source: Start processing command /merge

    ---
    2026-11-24 17:05:52 UTC :x: MergeQueue

    The merge queue is disabled for this repository/branch.

    Assignees
    zhuminyi zhuminyi
    Labels
    risk: low confidence: 84.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 23.1% (LOW) · Higher = larger blast radius
    23.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 84.8% · Lower = rushed or shallow review
    84.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3.5% · Safe to merge
    3.5%