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

feat: add separate flag for metrics #1504

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

Conversation

AntiTyping
Copy link
Contributor

@AntiTyping AntiTyping commented Sep 16, 2024

Refactors debug and metrics servers into two separate servers

  • adds --enable-metrics-server
  • uses 127.0.0.1 as the default address for debug and metrics servers
  • uses port 5184 as the default port for metrics server
  • adds metrics-listen-addr setting to config.yaml
  • rly config init will generate the following config
  • renamed api-listen-addr to debug-listen-addr
  • renames --debug-addr to --debug-listen-addr to be consistent with config
global:
    debug-listen-addr: 127.0.0.1:5183
    metrics-listen-addr: 127.0.0.1:5184
    ...

@AntiTyping AntiTyping requested a review from a team as a code owner September 16, 2024 20:12
@AntiTyping AntiTyping force-pushed the andy/feat/add-separate-flag-for-metrics branch from 709729a to 17a9b80 Compare September 16, 2024 20:27
@freak12techno
Copy link

Just saying, 9100 is a default port for node_exporter, which is widely used everywhere for HW metrics collection, so it might clash.

cmd/flags.go Outdated Show resolved Hide resolved
@Reecepbcups Reecepbcups changed the title Andy/feat/add separate flag for metrics feat: add separate flag for metrics Sep 17, 2024
cmd/flags.go Outdated Show resolved Hide resolved
cmd/config.go Outdated Show resolved Hide resolved
* 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
@AntiTyping AntiTyping force-pushed the andy/feat/add-separate-flag-for-metrics branch 2 times, most recently from f2318fa to 6edcf5c Compare September 19, 2024 15:36
@AntiTyping AntiTyping force-pushed the andy/feat/add-separate-flag-for-metrics branch from 6edcf5c to ec7bb41 Compare September 19, 2024 15:58
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants