-
Notifications
You must be signed in to change notification settings - Fork 270
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
Bump snmp_exporter and modules to v0.28.0 #2830
base: main
Are you sure you want to change the base?
Conversation
💻 Deploy preview available: https://deploy-preview-alloy-2830-zb444pucvq-vp.a.run.app/docs/alloy/latest/ |
ifeq ($(USE_CONTAINER),1) | ||
$(RERUN_IN_CONTAINER) | ||
else | ||
@LATEST_SNMP_VERSION=$$(go list -m github.com/prometheus/snmp_exporter | cut -d' ' -f2); \ |
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.
Can you not get the version using Go templates? It'd be more readable.
$(RERUN_IN_CONTAINER) | ||
else | ||
@LATEST_SNMP_VERSION=$$(go list -m github.com/prometheus/snmp_exporter | cut -d' ' -f2); \ | ||
sed -i "s|snmp_exporter/[^/]*/snmp.yml|snmp_exporter/$$LATEST_SNMP_VERSION/snmp.yml|" internal/static/integrations/snmp_exporter/common/common.go; \ |
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.
It'd be nice to have comments above the sed
commands to explain what they do. I'm personally not familiar with sed
, and I suspect many others are also not.
PR Description
Bump snmp_exporter and modules to v0.28.0 and add make target to update snmp in one
make generate-snmp
Also syncs snmp.yml version to snmp_exporter module used.
Which issue(s) this PR fixes
Notes to the Reviewer
PR Checklist