Comments (7)
The documentation update in b99f426 is incorrect, from a year ago.
Using this flag will use the instance ID in the Chef Handler, as seen here: b99f426 and this does indeed work (I tested it a lot) that passing somenodename
to the Agent, and passing true
to the Chef attribute of use_ec2_instance_id
results in the event & metrics being sent with the instance ID.
If the incorrectness is in the documentation, that's an easy fix. If the desire is to have the flag control more than the handler, and directly affect the other hostname-related attribute added in 6be7869 , then I think I need a clearer case, since the title states something other than the description.
from chef-datadog.
Sorry, I renamed the issue for more clarity. The flag definitely is useful for changing the instance id in the chef handler. However, it doesn't cause the agent hostname to be set to the instance ID. It sounds like the problem is probably just in the doc, unless a use case for this flag was mistakenly removed.
from chef-datadog.
Thanks for updating!
So now we can do one of two things (or more?):
- We can update the docs to reflect that the flag only affects the Handler, not the Agent. Easy as 𝜋.
- We can make a decision to leverage the Cookbook's invocation of passing along the
hostname
variable, by default set tonode.name
, to the Handler, and using that, per DataDog/chef-handler-datadog#41
I think the second one makes more sense, but I wanted to ensure I understand the needs before changing the default behavior for the Handler, with a backup to node.name
.
Thoughts?
from chef-datadog.
I agree that 2 makes sense, the chef-handler should just be responding to what we do for the agent, if someone has decided to set their hostname explicitly, we should follow that example for submitting chef metrics.
from chef-datadog.
Ok, I think we're on the same page there.
Now we come with the interesting part: should use_ec2_instance_id
override the Agent's configuration for hostname
?
from chef-datadog.
Can we get rid of use_ec2_instance_id
? If someone's already explicitly set the agent hostname to something else we shouldn't need to override it. The agent's default hostname (node.name
) starts out as the instance ID on AWS hosts, correct?
from chef-datadog.
So the flag is pretty much as old as time, in a couple of invocations:
38cd6df
a051ee3
6b08f32
I'm thinking that removal may produce potentially undesirable results.
The node.name
is set by default in the cookbook, as well as in the hander, so I think the logic of using use_ec2_instance_id
should trump all other cases.
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
- Incorrect Hostname in datadog.yaml file HOT 4
- 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.