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
Auto-update Go Collector Metrics for new Go versions #1476
Auto-update Go Collector Metrics for new Go versions #1476
Conversation
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
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.
Awesome job! 👏 👏 👏
I've made a few comments but it's already pretty much ready. I'd suggest we introduce the workflow automation in a separate PR, that way we can keep PRs small and easier to review
Also, you can fix the linting issues of the failed CI by running |
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
Thank you for the feedback @ArthurSens! I've updated the code and fixed linting issues :) |
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.
Awesome 🏆 🥇 💯
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.
Thanks 💪🏽
This PR enables autogeneration of Go Collector metrics for supported Go versions.
Runnig
make generate-go-collector-test-files
command will generate the required metrics collected by Go Collector for list of Go versions specified insupported_go_versions.txt
.Details about the autogenerated files:
prometheus/gen_go_collector_metrics_set.go
will generatego_collector_metrics_<version>_test.go
file.prometheus/collectors/gen_go_collector_set.go
will generatego_collector_<version>_test.go
file.Subsequent PR will include automatic generation of files when a new Go version is released. Plan is to have a weekly scheduled GitHub action that will check for the release of new Go versions and will open a PR with autogenerated required files.