Comments (4)
Hi @vpilania,
Can you confirm that, in datadog.yaml
, the hostname:
field is not specified or has an empty value?
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!
from chef-datadog.
hostname: field is not empty when I run but captures Name of the instance and not for example 'i-abcw123eqe' which I expect!
from chef-datadog.
The default behavior of this cookbook is to set the agent hostname to the Chef node name (node['datadog']['hostname'] = node.name
, see default attribute). To set the agent hostname to the AWS instance ID, you can override this default to node.ec2.instance_id
, for example with:
default_attributes(
'datadog' => {
'hostname' => node.ec2.instance_id,
'use_ec2_instance_id' => true
}
)
('use_ec2_instance_id' => true
is also set here so that the Chef Datadog Handler, if enabled, reports tags, metrics and events using the instance ID as the hostname as well).
Let me know if this solves your issue, thanks.
from chef-datadog.
I'm getting this problem in which hostname is getting registered with two different instance-id out of which one is correct....not sure where it is picking up this - i-00aa96d1c9d27da57 which is incorrect......why would that happen?
from chef-datadog.
Related Issues (20)
- Support custom MBean collection HOT 5
- SOLR Integration doesn't work when configured with Chef HOT 1
- Agent conflicts with Docker Registry on port 5000 HOT 1
- Breaking change introduced in version 4.10.0 - network monitoring HOT 2
- logs_agent_config attribute is ignored HOT 1
- integration resource should notify a restart of the agent after installing a new version HOT 2
- Support cookbook renaming HOT 3
- undefined method `to_yaml' in newer versions of Chef HOT 1
- Chef Infra 18 deprecation warnings HOT 1
- Deprecation CHEF-25 HOT 3
- Support for UPSC HOT 2
- 2022 Linux Agent Key Rotation for someone using v4.10.0 HOT 3
- Windows system_probe commits missing from the latest datadog cookbook (4.12.0) HOT 1
- remove_dd_agent recipe does not remove the apt source nor datadog-signing-keys package HOT 1
- Could someone help me in resolving the error below which I am getting while chef is trying to install datadog agent on AWS Ubuntu host. HOT 7
- Consul Prometheus support missing
- [doc] Correct example in windows_service
- chef_handler dependency deprecated HOT 2
- [BUG] The datadog.process_agent.url attribute does not take datadog.site into account
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-datadog.