Skip to content

Commit 4ebd17e

Browse files
authored
Merge pull request #519 from DataDog/jaime/docs
[release][docs] prep work for 2.14.0 + documentation update for A6
2 parents e7c6591 + 01bb0d4 commit 4ebd17e

File tree

4 files changed

+77
-9
lines changed

4 files changed

+77
-9
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changes
22
=======
33

4+
# 2.14.0 / 2018-02-27
5+
* [FEATURE] Enable log collection with chef. See [#498][] [@NBParis][]
6+
* [FEATURE] Support process agent configuration in datadog.yaml. See [#511][] [@conorbranagan][]
7+
* [FEATURE] Add recipe for WMI check. See [#499][] [@mlcooper][]
8+
* [FEATURE] Add updated metrics for Cassandra 2.x and 3.x. See [#516][] [@olivielpeau][]
9+
* [FEATURE] Update component for APT repo, and URL for YUM for Agent6. See [#515][] [@olivielpeau][]
10+
* [FEATURE] Consul: support self leader check and network latency checks. See [#501][] [@azuretek][]
11+
* [BUGFIX] RHEL/Amazon linux: add service provider hint for Agent6 + upstart. See [#518][] [@olivielpeau][]
12+
413
# 2.13.0 / 2017-12-01
514

615
* [FEATURE] Add support for Logs, See [#490][] [@tmichelet][]
@@ -600,6 +609,13 @@ A fix has gone in to `apt` 2.1.0 that relaxes this condition, and plays well wit
600609
[#492]: https://github.com/DataDog/chef-datadog/issues/492
601610
[#493]: https://github.com/DataDog/chef-datadog/issues/493
602611
[#495]: https://github.com/DataDog/chef-datadog/issues/495
612+
[#498]: https://github.com/DataDog/chef-datadog/issues/498
613+
[#499]: https://github.com/DataDog/chef-datadog/issues/499
614+
[#501]: https://github.com/DataDog/chef-datadog/issues/501
615+
[#511]: https://github.com/DataDog/chef-datadog/issues/511
616+
[#515]: https://github.com/DataDog/chef-datadog/issues/515
617+
[#516]: https://github.com/DataDog/chef-datadog/issues/516
618+
[#518]: https://github.com/DataDog/chef-datadog/issues/518
603619
[@ABrehm264]: https://github.com/ABrehm264
604620
[@AlexBevan]: https://github.com/AlexBevan
605621
[@BrentOnRails]: https://github.com/BrentOnRails
@@ -608,6 +624,7 @@ A fix has gone in to `apt` 2.1.0 that relaxes this condition, and plays well wit
608624
[@JoeDeVries]: https://github.com/JoeDeVries
609625
[@LeoCavaille]: https://github.com/LeoCavaille
610626
[@MiguelMoll]: https://github.com/MiguelMoll
627+
[@NBParis]: https://github.com/NBParis
611628
[@NathanielMichael]: https://github.com/NathanielMichael
612629
[@RedWhiteMiko]: https://github.com/RedWhiteMiko
613630
[@SelerityMichael]: https://github.com/SelerityMichael
@@ -617,6 +634,7 @@ A fix has gone in to `apt` 2.1.0 that relaxes this condition, and plays well wit
617634
[@alq]: https://github.com/alq
618635
[@antonio-osorio]: https://github.com/antonio-osorio
619636
[@arthurnn]: https://github.com/arthurnn
637+
[@azuretek]: https://github.com/azuretek
620638
[@babbottscott]: https://github.com/babbottscott
621639
[@bai]: https://github.com/bai
622640
[@benmanns]: https://github.com/benmanns

README.md

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Datadog Cookbook
1616

1717
Chef recipes to deploy Datadog's components and configuration automatically.
1818

19-
This cookbook includes experimental support of the beta version of the Datadog Agent 6.0, please refer to
20-
the [inline docs](https://github.com/DataDog/chef-datadog/blob/v2.13.0/attributes/default.rb#L31-L68)
19+
This cookbook includes new support for Datadog Agent version 6.0, please refer to
20+
the [inline docs](https://github.com/DataDog/chef-datadog/blob/v2.14.0/attributes/default.rb#L31-L68)
2121
for more details on the supported platforms and how to use it.
22-
Log collection is now available with agent 6.0, please refer to the [inline docs](https://github.com/DataDog/chef-datadog/blob/v2.13.0/attributes/default.rb#L371-L376) to enable it.
22+
Log collection is now available with agent 6.0, please refer to the [inline docs](https://github.com/DataDog/chef-datadog/blob/v2.14.0/attributes/default.rb#L371-L376) to enable it.
2323

2424
For general information on the Datadog Agent 6, please refer to the [datadog-agent](https://github.com/DataDog/datadog-agent/) repo.
2525

@@ -108,9 +108,59 @@ There are many other integration-specific recipes, that are meant to assist in d
108108
Usage
109109
=====
110110

111+
### Agent6 Note
112+
Please note the cookbook now supports installing both Agent5 and Agent6 of the datadog agent on debian and RHEL based linux distributions (not yet supported on windows). By default versions `<=1.x` of the cookbook will default to install Agent5, you may however override this behavior with the `node['datadog']['agent6']` attribute.
113+
```
114+
default_attributes(
115+
'datadog' => {
116+
'agent6' => true
117+
}
118+
)
119+
```
120+
121+
Additional attributes are available to have finer control over how you install agent6. These are agent6 counterparts to several well known agent5 attributes (code [here](https://github.com/DataDog/chef-datadog/blob/master/attributes/default.rb#L31-L69)):
122+
* `agent6_version`: should allow you to pin the agent version.
123+
* `agent6_package_action`: defaults to `'install'`, may be set to `'upgrade'` to always upgrade to latest.
124+
* `agent6_aptrepo`: desired APT repo for the agent. Defaults to `http://apt.datadoghq.com`
125+
* `agent6_aptrepo_dist`: desired distribution for the APT repo. Defaults to `stable`
126+
* `agent6_yumrepo`: desired YUM repo for the agent. Defaults to `https://yum.datadoghq.com/stable/6/x86_64/`
127+
128+
Should wish to add additional elements to the agent6 configuration file, typically `/etc/datadog/datadog.yaml` you may use the `node['datadog']['extra_config']` attribute. This attribute is a hash and will be marshaled into the configuration file accordingly. For instance, to enable the `apm` tracing agent bundled with agent6:
129+
```
130+
default_attributes(
131+
'datadog' => {
132+
'extra_config' => {
133+
'apm_config' => {
134+
'enabled' => true
135+
}
136+
}
137+
}
138+
)
139+
```
140+
141+
or to enable both process agent and apm:
142+
```
143+
default_attributes(
144+
'datadog' => {
145+
'extra_config' => {
146+
'apm_config' => {
147+
'enabled' => true
148+
},
149+
'process_config' => {
150+
'enabled' => 'disabled'
151+
}
152+
}
153+
}
154+
)
155+
```
156+
NB: please take a look at the process and apm agents for more details regarding configuration options. [APM Trace Agent](https://github.com/DataDog/datadog-trace-agent) and [Process Agent](https://github.com/DataDog/datadog-process-agent)
157+
158+
159+
### Instructions
160+
111161
1. Add this cookbook to your Chef Server, either by installing with knife or by adding it to your Berksfile:
112162
```
113-
cookbook 'datadog', '~> 2.7.0'
163+
cookbook 'datadog', '~> 2.14.0'
114164
```
115165
2. Add your API Key either:
116166
* as a node attribute via an `environment` or `role`, or
@@ -137,6 +187,8 @@ Usage
137187
recipe[datadog::dd-handler]
138188
)
139189
```
190+
NB: remember to set `agent6` attribute in the `datadog` hash if you'd like to install agent6.
191+
140192
5. Wait until `chef-client` runs on the target node (or trigger chef-client manually if you're impatient)
141193

142194
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.

attributes/default.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
default['datadog']['application_key'] = nil
3030

3131
########################################################################
32-
### Agent6-only attributes, experimental ###
33-
### These attributes are not part of the stable API of the cookbook ###
34-
### Subject to breaking changes between bugfix/minor versions ###
32+
### Agent6-only attributes ###
3533
### Only works on Linux (DEB/RPM) for now ###
3634

3735
# If you're installing a pre-release version of Agent 6 (beta or RC), you need to:
@@ -68,7 +66,7 @@
6866
# Supported keys: "series", "events", "service checks"
6967
default['datadog']['use_v2_api'] = {}
7068

71-
### End of Beta-Agent6-only experimental attributes ###
69+
### End of Agent6-only attributes ###
7270
########################################################################
7371

7472
# Use this attribute to send data to additional accounts

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'Apache-2.0'
55
description 'Installs/Configures datadog components'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '2.13.0'
7+
version '2.14.0'
88
chef_version '>= 10.14' if respond_to? :chef_version
99
source_url 'https://github.com/DataDog/chef-datadog' if respond_to? :source_url
1010
issues_url 'https://github.com/DataDog/chef-datadog/issues' if respond_to? :issues_url

0 commit comments

Comments
 (0)