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

fix(inputs.netflow): Cast TCP ports to uint16 #16197

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

joseluisgonzalezca
Copy link
Contributor

@joseluisgonzalezca joseluisgonzalezca commented Nov 18, 2024

Summary

This PR fixes issue #16139. TCP source port and TCP destination port of sFlow packages were not included in Telegraf metrics because their type was a complex one. By converting them to a primitive type uint16, the fields are properly included.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #16139

@telegraf-tiger
Copy link
Contributor

Thanks so much for the pull request!
🤝 ✒️ Just a reminder that the CLA has not yet been signed, and we'll need it before merging. Please sign the CLA when you get a chance, then post a comment here saying !signed-cla

@telegraf-tiger telegraf-tiger bot added fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Nov 18, 2024
@joseluisgonzalezca
Copy link
Contributor Author

!signed-cla

@telegraf-tiger
Copy link
Contributor

@srebhan srebhan changed the title fix(inputs.netflow): cast TCP ports to uint16 fix(inputs.netflow): Cast TCP ports to uint16 Nov 18, 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.

Thanks for the fix @joseluisgonzalezca!

@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 Nov 18, 2024
@DStrand1 DStrand1 merged commit 427b8d3 into influxdata:master Nov 18, 2024
31 checks passed
@github-actions github-actions bot added this to the v1.32.3 milestone Nov 18, 2024
@joseluisgonzalezca joseluisgonzalezca deleted the issue#16139 branch November 18, 2024 15:52
srebhan pushed a commit that referenced this pull request Nov 18, 2024
Co-authored-by: jlgonzalez <[email protected]>
(cherry picked from commit 427b8d3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug 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
3 participants