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

Allow to set the nodename on telemetry #2098

Merged
merged 1 commit into from
Jan 3, 2017

Conversation

jorgemarey
Copy link
Contributor

Fixes #2094

@jorgemarey jorgemarey changed the title F telemetry nodename Allow to set the nodename on telemetry Dec 13, 2016
@@ -621,6 +621,9 @@ func (c *Command) setupTelemetry(config *Config) error {

metricsConf := metrics.DefaultConfig("nomad")
metricsConf.EnableHostname = !telConfig.DisableHostname
if telConfig.UseName {
Copy link
Contributor

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use_node_name?

@jorgemarey
Copy link
Contributor Author

Changed!

@dadgar
Copy link
Contributor

dadgar commented Dec 20, 2016

@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?

@jorgemarey
Copy link
Contributor Author

I think I fix the problem. Some tests failed, do I need to do something else?

@dadgar
Copy link
Contributor

dadgar commented Jan 3, 2017

@jorgemarey Thanks 👍

@dadgar dadgar closed this Jan 3, 2017
@dadgar dadgar reopened this Jan 3, 2017
@dadgar dadgar merged commit 5031075 into hashicorp:master Jan 3, 2017
@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants