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

feat(inputs.snmp): Add displayhint conversion #15935

Merged
merged 8 commits into from
Oct 2, 2024

Conversation

Hipska
Copy link
Contributor

@Hipska Hipska commented Sep 24, 2024

Summary

Add option to format the returned value from SNMP according to the textual convention from the MIB, for example the DateAndTime. The return type for this field will then be string.

Checklist

  • No AI generated code was used in this PR
  • Update processors.snmp_lookup docs
  • Deprecate redundant conversion options

@telegraf-tiger telegraf-tiger bot added area/snmp feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Sep 24, 2024
@Hipska Hipska marked this pull request as ready for review September 25, 2024 12:15
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Nice work @Hipska! Just one comment as we don't want implicit return-value declarations if avoidable.

internal/snmp/field.go Outdated Show resolved Hide resolved
internal/snmp/field.go Outdated Show resolved Hide resolved
@srebhan srebhan self-assigned this Oct 1, 2024
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

One more...

internal/snmp/field.go Outdated Show resolved Hide resolved
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks @Hipska!

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Oct 2, 2024
@srebhan srebhan assigned DStrand1 and unassigned srebhan Oct 2, 2024
@DStrand1 DStrand1 merged commit ddd6023 into influxdata:master Oct 2, 2024
26 of 27 checks passed
@github-actions github-actions bot added this to the v1.33.0 milestone Oct 2, 2024
@Hipska Hipska deleted the feat/snmp/display_hint branch October 2, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/snmp feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants