Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[snmp] Support new profiles without throwing errors in translate-profiles #10648

Merged
merged 2 commits into from
Dec 6, 2021

Conversation

pducolin
Copy link
Contributor

What does this PR do?

ddev meta snmp translate-profile migrates legacy MIB based profiles to the current OID based format. The tool was triggering exceptions when executed over OID based format, as it was expecting string values but was getting dictionaries.

This PR skips OID based format metrics.

Motivation

Exceptions triggered when QAing #10353

Additional Notes

Testing:

Running ddev meta snmp translate-profile snmp/datadog_checks/snmp/data/profiles/cisco-nexus.yaml should not trigger any error.
Running ddev meta snmp translate-profile snmp/datadog_checks/snmp/data/profiles/cisco-asa.yaml should not trigger any error.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@codecov
Copy link

codecov bot commented Nov 16, 2021

Codecov Report

Merging #10648 (7e75f04) into master (2824dc9) will not change coverage.
The diff coverage is n/a.

Flag Coverage Δ
datadog_checks_dev 79.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@pducolin pducolin merged commit 5be5bfb into master Dec 6, 2021
@pducolin pducolin deleted the pducolin/snmp-support-profiles-translate-legacy branch December 6, 2021 08:59
cswatt pushed a commit that referenced this pull request Jan 5, 2022
…iles (#10648)

* [snmp] support new profiles without throwing errors

* [snmp] support profiles with no metrics
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.

2 participants