-
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 to set the nodename on telemetry #2098
Conversation
@@ -621,6 +621,9 @@ func (c *Command) setupTelemetry(config *Config) error { | |||
|
|||
metricsConf := metrics.DefaultConfig("nomad") | |||
metricsConf.EnableHostname = !telConfig.DisableHostname | |||
if telConfig.UseName { |
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.
Can we just detect if UseName is set and set the appropriate EnableHostname. In the docs we should note if set it will override DisableHostname
@@ -527,6 +527,7 @@ func parseTelemetry(result **Telemetry, list *ast.ObjectList) error { | |||
"statsite_address", | |||
"statsd_address", | |||
"disable_hostname", | |||
"use_name", |
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.
use_node_name
?
Changed! |
@jorgemarey Some weird rebasing going on there? Let me know if you want to fix it or I can open another PR and just grab your changes? |
d677d59
to
a39cebb
Compare
I think I fix the problem. Some tests failed, do I need to do something else? |
@jorgemarey Thanks 👍 |
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 #2094