-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Allow operators to opt into publishing node and alloc metrics #1501
Conversation
c.emitStats(ru) | ||
|
||
// Publish Node metrics if operator has opted in | ||
if c.config.PublishNodeMetrics { |
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 looks like you check the config settings inside the function. Are you sure you need the guard up here?
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.
@slackpad We do that in the emitMetrics
method of task runners, this is for the emitMetrics
method of the Client which sends host related metrics.
cc/ @dadgar |
@@ -1,5 +1,9 @@ | |||
## 0.4.1 (UNRELEASED) | |||
|
|||
__BACKWARDS INCOMPATIBILITIES:__ |
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 would make it default as true and let people who want to disable it disable it.
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.
We are keeping the default false since the volume of metrics Nomad emits is quite large.
We will open a follow up PR which will allow a tunable for operators to opt-in for nomad-internals related metrics. |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes #1499