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

Bump snmp_exporter and modules to v0.28.0 #2830

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

v-zhuravlev
Copy link
Contributor

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

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@v-zhuravlev v-zhuravlev requested review from clayton-cornell and a team as code owners February 25, 2025 09:31
Copy link
Contributor

github-actions bot commented Feb 25, 2025

@v-zhuravlev v-zhuravlev requested a review from wildum February 25, 2025 18:34
@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Feb 25, 2025
ifeq ($(USE_CONTAINER),1)
$(RERUN_IN_CONTAINER)
else
@LATEST_SNMP_VERSION=$$(go list -m github.com/prometheus/snmp_exporter | cut -d' ' -f2); \
Copy link
Collaborator

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; \
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants