-
Notifications
You must be signed in to change notification settings - Fork 261
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
Incorrect Hostname in datadog.yaml file #802
Comments
Hi @vpilania, Can you confirm that, in If so, then the cookbook works as expected to make the Agent autodetect its hostname, so please open a case with our support team and send them a flare so that our support team has all the necessary information to look into your issue. Thanks! |
hostname: field is not empty when I run but captures Name of the instance and not for example 'i-abcw123eqe' which I expect! |
The default behavior of this cookbook is to set the agent hostname to the Chef node name ( default_attributes(
'datadog' => {
'hostname' => node.ec2.instance_id,
'use_ec2_instance_id' => true
}
) ( Let me know if this solves your issue, thanks. |
Hi I'm using chef-client 12.22.1 on Amazon Linux AMI release 2018.03 to install datadog-linux-agent v7 via latest chef-cookbook. I'm seeing that in the datadog.yaml, the hostname when I leave it to autodetect it's not picking up the instance-id but "Name" of the AWS instance
How to fix that?
The text was updated successfully, but these errors were encountered: