cookbook 'datadog', '= 1.2.0', :supermarket
Installs/Configures datadog components
cookbook 'datadog', '= 1.2.0'
knife cookbook site install datadog
knife cookbook site download datadog
Where to Find the Code
To submit issues and patches please visit https://github.com/DataDog/chef-datadog. The code is licensed under the Apache License 2.0 (see LICENSE for details).
Chef recipes to deploy Datadog's components and configuration automatically.
- python >= 2.6
- chef >= 10.14
- Amazon Linux
- Scientific Linux
The following Opscode cookbooks are dependencies:
Just a placeholder for now, when we have more shared components they will probably live there.
Installs the Datadog agent on the target system, sets the API key, and start the service to report on the local system metrics
Installs the chef-handler-datadog gem and invokes the handler at the end of a Chef run to report the details back to the newsfeed.
Installs the language-specific libraries to interact with
There are many other integration-specific recipes, that are meant to assist in deploying the correct agent configuration files and dependencies for a given integration.
- Add this cookbook to your Chef Server, either by installing with knife or downloading and uploading to your chef-server with knife.
- Add your API Key, either to
attributes/default.rb, or by using the inheritance model and placing it on the node via
roleor declaring it in another cookbook at a higher precendence level.
- Create an 'application key' for
chef_handlerhere, and add it to your node, like in Step #2.
- Upload the cookbook to chef server via:
knife cookbook upload datadog
- Associate the recipes with the desired
roles, i.e. "role:chef-client" should contain "datadog::dd-handler" and a "role:base" should start the agent with "datadog::dd-agent".
- Wait until
chef-clientruns on the target node (or trigger chef-client manually if you're impatient)
We are not making use of data_bags in this recipe at this time, as it is unlikely that you will have more than one API key and one application key.
For more deployment details, visit the Datadog Documentation site.