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

Datadog hostname might be configured incorrectly #194

Open
deniseyu opened this issue Dec 27, 2019 · 0 comments
Open

Datadog hostname might be configured incorrectly #194

deniseyu opened this issue Dec 27, 2019 · 0 comments

Comments

@deniseyu
Copy link
Contributor

In our Datadog agent ops file we enable the unique_friendly_hostname flag.

But according to the Datadog bosh release, that flag only matters if the friendly_hostname flag is also set to true:

<%
  # Force the hostname to whatever you want. (default: auto-detected)
  # if no hostname is specified, it will just use the name of the VM
  if p("dd.hostname", nil)
    hostname = p("dd.hostname", "")
  elsif p("dd.use_uuid_hostname", false) and spec.id and not spec.id.empty?
    hostname = spec.id
  elsif p("dd.friendly_hostname", true)
    hostname = "#{spec.name.tr('_', '-')}-#{spec.index}"
    if p("dd.unique_friendly_hostname", false)
      hostname = "#{hostname}-#{spec.deployment}"
    end
  end
%>

so I think what's happening now is we're just using the hostname, since dd.hostname isn't defined. If we want to use unique_friendly_hostname we might also need to set friendly_hostname to true.

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

No branches or pull requests

1 participant