Add metadata for AMD GPU metrics #26104
<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&buildId=AwAAAaIOItrY7kzHZQAAABhBYUlPSXRyWUFBRDFQLW5saG8yU2JmNVEAAAAkMDFhMjBlMmQtOThkOC00NGFmLTgyNDEtNTc3MmI4MDlmYmNlAABYxg&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>
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
<!-- 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
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>
Approved these changes.
<!-- 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:
| File | Description |
| ---- | ----------- |
| gpu/metadata.csv | Adds AMD metric entries and clarifies vendor-specific semantics. |
</details>
<sub>Review effort: Balanced</sub>
/merge
<!-- "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.
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>
<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 -->
/merge
<!-- "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.
martavicentenavarro
zhuminyi
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 withdda inv gpu.update-metadata.New AMD-only metrics (10):
gpu.xgmi.throughput.data.rx,gpu.xgmi.throughput.data.tx, and their.totalvariantsgpu.clock.throttle_reasons.vr_thermal_slowdown,gpu.clock.throttle_reasons.hbm_thermal_slowdowngpu.pci.recovery_counter,gpu.pci.nak_sent_counter,gpu.pci.nak_received_countergpu.errors.ecc.deferred.totalAMD 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_activegpu.clock.throttle_reasons.sw_power_cap,sw_thermal_slowdown,hw_slowdowngpu.pci.replay_countergpu.errors.ecc.corrected.total,gpu.errors.ecc.uncorrected.totalTo fit the 400-character limit,
gpu.errors.ecc.corrected.totalloses 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_gpucheck emits these metrics, butgpu/metadata.csvhas no AMD entries yet. They come from:gpu.pci.replay_counter, and the activity metricsAll 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_activeandgpu.sm_activeare left out.This is a metadata-only change, so it has no changelog entry.
ddev validate metadata gpupasses.Checklist before requesting review