Commit d7d3155
Fix ddev snmp generate-profile-from-mibs to use modern metric_tags fields (#23543)
* Fix snmp generate-profile-from-mibs to use modern metric_tags symbol field
The ddev meta snmp generate-profile-from-mibs command was emitting
table metric tags using the deprecated `column` field, which the SNMP
Profile Manager rejects on upload. Switch to the modern `symbol` field
per the MetricTagConfig schema in datadog-agent's profiledefinition.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Rename changelog fragment to match PR number
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Accept `symbol` in TableColumnHasTagValidator
The schema in datadog-agent's profiledefinition deprecated `column` in
favour of `symbol` for table metric tags. Extend the local
validate-profile validator so profiles using the modern `symbol` field
are not flagged as missing tags.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f315e2a commit d7d3155
3 files changed
Lines changed: 6 additions & 5 deletions
File tree
- datadog_checks_dev
- changelog.d
- datadog_checks/dev/tooling/commands/meta/snmp
- validators
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
| 645 | + | |
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
0 commit comments