-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat: add separate flag for metrics #1504
feat: add separate flag for metrics #1504
Conversation
709729a
to
17a9b80
Compare
Just saying, 9100 is a default port for node_exporter, which is widely used everywhere for HW metrics collection, so it might clash. |
6edcf5c
to
ec7bb41
Compare
Did we still want to ensure backwards compatibility in this PR by adding back the old flags/old fields in the config, and then mark things deprecated for one release? If not then i think this is mostly ready to merge and we can just cut a new major release |
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.
I just had the one comment about logs but other than that this looks good! I'll go ahead and approve now so merging is not blocked on me
f39c178
to
ff05eaf
Compare
* uses metrics-listen-addr for metrics server * sets default debug server api-listen-addr to 127.0.0.1:5183 * sets default metrics server metrics-listen-addr to 127.0.0.1:9100
* moves metrics to separate server
* removes address flags so config file is the source of truth for addresses * adds tests for flags to enable debug and metrics servers * adds tests for config file settings for addresses for debug and metrics servers * adjusts log messages
* restores address flags * renames `--debug-addr` to `--debug-listen-addr` to be consistent with config file setting `debug-listen-addr:` * renames `--metrics-addr` to `--metrics-listen-addr` to be consistent with config file setting `metrics-listen-addr:` * updates docs
ff05eaf
to
56008aa
Compare
Refactors debug and metrics servers into two separate servers
--enable-metrics-server
metrics-listen-addr
setting to config.yamlrly config init
will generate the following configapi-listen-addr
todebug-listen-addr
--debug-addr
to--debug-listen-addr
to be consistent with config