Skip to content

Commit 35e29ad

Browse files
authored
Merge pull request #45 from udacity/master
add support for configuring trace agent
2 parents 2015161 + 44ea81d commit 35e29ad

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Role Variables
1818

1919
- `datadog_api_key` - Your Datadog API key.
2020
- `datadog_checks` - YAML configuration for agent checks to drop into `/etc/dd-agent/conf.d`.
21-
- `datadog_config` - Settings to place in `/etc/dd-agent/datadog.conf`.
21+
- `datadog_config` - Settings to place in the `/etc/dd-agent/datadog.conf` INI file that go under the `[Main]` section.
22+
- `datadog_config_ex` - Extra INI sections to go in `/etc/dd-agent/datadog.conf` (optional).
2223
- `datadog_process_checks` - Array of process checks and options (DEPRECATED: use `process` under
2324
`datadog_checks` instead)
2425
- `datadog_apt_repo` - Override default Datadog `apt` repository
@@ -40,6 +41,12 @@ Example Playbooks
4041
datadog_config:
4142
tags: "mytag0, mytag1"
4243
log_level: INFO
44+
apm_enabled: true
45+
datadog_config_ex:
46+
trace.config:
47+
env: dev
48+
trace.concentrator:
49+
extra_aggregators: version
4350
datadog_checks:
4451
process:
4552
init_config:

templates/datadog.conf.j2

+7
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@
1616
{% if datadog_config -%}
1717
{{ datadog_config | to_nice_yaml }}
1818
{% endif %}
19+
20+
{% if datadog_config_ex is defined -%}
21+
{% for section, keyvals in datadog_config_ex.iteritems() %}
22+
[{{ section }}]
23+
{{ keyvals | to_nice_yaml }}
24+
{% endfor %}
25+
{% endif %}

0 commit comments

Comments
 (0)