-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Input SNMP plugin - upgrade gosnmp library to version 1.29.0 #8588
Conversation
b244ae0
to
48bb6af
Compare
Shouldn’t the library also be updated at the other places where it is used? As now telegraf will be using 2 versions. |
gosnmp library is used by two more input plugins, namely
|
This PR is related to #7836, however please proceed with this PR as the other one is stalled. |
go.mod
Outdated
@@ -66,6 +66,7 @@ require ( | |||
github.com/google/go-github/v32 v32.1.0 | |||
github.com/gopcua/opcua v0.1.12 | |||
github.com/gorilla/mux v1.6.2 | |||
github.com/gosnmp/gosnmp v1.28.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is now gosnmp v1.29 out. Do you see any reason to not directly upgrade to the new version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srebhan, I have version with 1.28.0 tested and running. In my use cases I have not noticed any issues so far which can be related to the upgrade. I see that there is gosnmp v1.29 and that it has only one change included, but I cannot estimate if that change can break the expected behaviors in Telegraf.
If you are willing to go with v1.29.0, I can change it in PR - let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try directly going to v1.29 then. Please update the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srebhan, updated to v1.29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. In the meantime v1.29 is out. Any reason not to upgrade to this version directly?
Can you also add "Closes #3788" to your initial description? So merging this PR, will also close that issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. You might want to retrigger CI by rebasing your work...
2bcac2b
to
31ee083
Compare
(cherry picked from commit 9ee6e03)
Required for all PRs:
No need to update README.md or unit tests, since functionality has not been changed.
The update of gosnmp library to version 1.28.0 for usage in input snmp plugin should fix the issue described in #3788.
Closes #3788