You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`datadog_apt_cache_valid_time` - Override the default apt cache expiration time (default 1 hour)
30
34
-`datadog_apt_key_url_new` - Override default url to Datadog `apt` key (key ID `382E94DE` ; the deprecated `datadog_apt_key_url` variable refers to an expired key that's been removed from the role)
@@ -56,8 +60,54 @@ Dependencies
56
60
------------
57
61
None
58
62
63
+
Configuring a check
64
+
-------------------
65
+
66
+
To configure a check you need to add an entry to the `datadog_checks` section.
67
+
The first level key is the name of the check and the value is the yaml payload
68
+
to write the configuration file.
69
+
70
+
Example:
71
+
72
+
**Process check**
73
+
74
+
We define 2 instances for the `process` check.
75
+
This will create:
76
+
- for agent6: `/etc/datadog-agent/conf.d/process/conf.yaml`
77
+
- for agent5: `/etc/datadog-agent/conf.d/process.yaml`
78
+
79
+
```yml
80
+
datadog_checks:
81
+
process:
82
+
init_config:
83
+
instances:
84
+
- name: ssh
85
+
search_string: ['ssh', 'sshd' ]
86
+
- name: syslog
87
+
search_string: ['rsyslog' ]
88
+
cpu_check_interval: 0.2
89
+
exact_match: true
90
+
ignore_denied_access: true
91
+
```
92
+
93
+
**custom check**
94
+
95
+
We define 1 instance for a custom check.
96
+
97
+
This will create:
98
+
- for agent6: `/etc/datadog-agent/conf.d/my_custom_check/conf.yaml`
99
+
- for agent5: `/etc/datadog-agent/conf.d/my_custom_check.yaml`
0 commit comments