forked from DataDog/dd-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatadog.conf.example
More file actions
485 lines (375 loc) · 17.4 KB
/
datadog.conf.example
File metadata and controls
485 lines (375 loc) · 17.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
[Main]
# The host of the Datadog intake server to send agent data to
dd_url: https://app.datadoghq.com
# The Datadog api key to associate your agent's data with your organization.
# Can be found here:
# https://app.datadoghq.com/account/settings
api_key:
# Boolean to enable debug_mode, which outputs massive amounts of log messages
# to the /tmp/ directory.
debug_mode: no
# Force the hostname to whatever you want.
#hostname: mymachine.mydomain
# Set the host's tags
#tags: mytag0, mytag1
# Use mount points instead of volumes to track disk and fs metrics
use_mount: no
# Change port the agent is listening to
# listen_port: 17123
# Start a graphite listener on this port
# graphite_listen_port: 17124
# Allow non-local traffic to this agent
# This is required when using this agent as a proxy for other agents
# that might not have an internet connection
# For more information, please see
# https://github.com/DataDog/dd-agent/wiki/Network-Traffic-and-Proxy-Configuration
# non_local_traffic: no
# ========================================================================== #
# Pup configuration
# ========================================================================== #
# Pup is a small server that displays metric data collected by the agent.
# Think of it as a fancy status page or a toe dip into the world of
# datadog. It can be connected to on the port below.
# use_pup: yes
# pup_port: 17125
# pup_url: http://localhost:17125
# ========================================================================== #
# DogStatsd configuration #
# ========================================================================== #
# DogStatsd is a small server that aggregates your custom app metrics. For
# usage information, check out http://api.datadoghq.com
# Make sure your client is sending to the same port.
# dogstatsd_port : 8125
# By default dogstatsd will post aggregate metrics to the agent (which handles
# errors/timeouts/retries/etc). To send directly to the datadog api, set this
# to https://app.datadoghq.com.
# dogstatsd_target : http://localhost:17123
## The dogstatsd flush period.
# dogstatsd_interval : 10
## If 'yes', counters and rates will be normalized to 1 second (that is divided
## by the dogstatsd_interval) before being sent to the server. Defaults to 'yes'
# dogstatsd_normalize : yes
# ========================================================================== #
# Service-specific configuration #
# ========================================================================== #
# -------------------------------------------------------------------------- #
# Apache #
# -------------------------------------------------------------------------- #
# Url to Apache's status page. Must have mod_status installed.
# See http://httpd.apache.org/docs/2.0/mod/mod_status.html for details.
#apache_status_url: http://www.example.com/server-status/?auto
# -------------------------------------------------------------------------- #
# Ganglia #
# -------------------------------------------------------------------------- #
# Ganglia host where gmetad is running
#ganglia_host: localhost
# Ganglia port where gmetad is running
#ganglia_port: 8651
# -------------------------------------------------------------------------- #
# MySQL #
# -------------------------------------------------------------------------- #
# MySQL host
#mysql_server:
# (Alternative connection via unix sockets)
#mysql_sock:
# MySQL user. It runs "SHOW STATUS" and "SHOW SLAVE STATUS" queries.
# You should consider creating a separate user, e.g. datadog.
# CREATE USER 'datadog'@'localhost' identified by 'my_password';
# The latter requires the "REPLICATION CLIENT" privileges using a command like:
# GRANT REPLICATION CLIENT ON *.* TO 'datadog'@'localhost';
# http://dev.mysql.com/doc/refman/5.1/en/privileges-provided.html#priv_replication-client
#mysql_user:
# MySQL user's password
#mysql_pass:
# -------------------------------------------------------------------------- #
# PostgreSQL #
# -------------------------------------------------------------------------- #
# PostgreSQL host
#postgresql_server:
# PostgreSQL port
#postgresql_port:
# PostgreSQL user. It needs to connect to the "postgres" database but does not
# require any privileges, so you should consider creating a separate,
# unprivileged user
#postgresql_user:
# PostgreSQL user's password
#postgresql_pass:
# -------------------------------------------------------------------------- #
# Nginx #
# -------------------------------------------------------------------------- #
# Url to nginx's status page. Must have http_stub_status_module installed.
# See http://wiki.nginx.org/HttpStubStatusModule for details.
# You can set multiple Nginx instances, using the schema below
# You have to set the end tag, your metrics will be then tagged instance:your_tag
#
#nginx_status_url_1: http://www.example.com/nginx_status:first_tag
#nginx_status_url_2: http://www.example2.com/nginx_status:8080:second_tag
#nginx_status_url_2: http://www.example3.com/nginx_status:third_tag
#...
# -------------------------------------------------------------------------- #
# RabbitMQ #
# -------------------------------------------------------------------------- #
# Url to RabbitMQ's status page. Must have rabbitmq-status plugin installed.
# See http://www.lshift.net/blog/2009/11/30/introducing-rabbitmq-status-plugin
# for details.
#rabbitmq_status_url: http://www.example.com:55672/json
#rabbitmq_user: guest
#rabbitmq_pass: guest
# -------------------------------------------------------------------------- #
# MongoDB #
# -------------------------------------------------------------------------- #
# MongoDB uri. For example: mongodb://my_user:my_pass@localhost/my_db
#mongodb_server:
# -------------------------------------------------------------------------- #
# CouchDB #
# -------------------------------------------------------------------------- #
# CouchDB host
#couchdb_server:
# -------------------------------------------------------------------------- #
# Cassandra #
# -------------------------------------------------------------------------- #
#cassandra_host: localhost
#cassandra_nodetool: /usr/bin/nodetool
## If you're using Cassandra 0.8 or higher:
# cassandra_port: 7199
## If you're using Cassandra 0.7 or lower:
#cassandra_port: 8080
# -------------------------------------------------------------------------- #
# Hudson #
# -------------------------------------------------------------------------- #
# Path to Hudson's home directory
# Make sure the dd-agent user can read this directory
#hudson_home: /var/lib/hudson/
# -------------------------------------------------------------------------- #
# Nagios #
# -------------------------------------------------------------------------- #
# dd-agent imports alerts and perfdata from nagios.
# Path to Nagios' event log file
# Make sure the dd-agent user can read this file
#nagios_log: /var/log/nagios3/nagios.log
# If you use perfdata, dd-agent can import automatically and in real-time
# performance data collected by nagios.
# For more information on perfdata configuration, please refer to
# http://nagios.sourceforge.net/docs/3_0/perfdata.html
#
# Path to Nagios' ***configuration*** file where the properties
# host|service_perfdata_file and host|service_perfdata_file_template
# are defined.
# (ubuntu 10.04)
#nagios_perf_cfg: /etc/nagios3/nagios.cfg
# (centos 5)
#nagios_perf_cfg: /etc/nagios/nagios.cfg
# -------------------------------------------------------------------------- #
# Java #
# -------------------------------------------------------------------------- #
# Get Java JVM metrics using JMX
# You can set multiple Java instances, using the schema below
# user is the JMX user (if any) used to connect to the related JMX instance
# password is the JMX password (if any) used to connect to the related JMX instance
# server is the JMX server url
# port is the port where the JMX server runs
# tag is the tag you want to associate to this instance, it's an optional parameter
# if not present the tag would be "server-port"
#java_jmx_instance_1: user:password@server:port:tag
#java_jmx_instance_2: user:password@server:port:tag
#...
# -------------------------------------------------------------------------- #
# Tomcat #
# -------------------------------------------------------------------------- #
# Get Tomcat metrics using JMX
# You can set multiple Tomcat instances, using the schema below
# user is the JMX user (if any) used to connect to the related JMX instance
# password is the JMX password (if any) used to connect to the related JMX instance
# server is the JMX server url
# port is the port where the JMX server runs
# tag is the tag you want to associate to this instance, it's an optional parameter
# if not present the tag would be "server-port"
#tomcat_jmx_instance_1: user:password@server:port:tag
#tomcat_jmx_instance_2: user:password@server:port:tag
#...
# -------------------------------------------------------------------------- #
# Activemq #
# -------------------------------------------------------------------------- #
# Get Activemq metrics using JMX
# You can set multiple ActiveMQ instances, using the schema below
# user is the JMX user (if any) used to connect to the related JMX instance
# password is the JMX password (if any) used to connect to the related JMX instance
# server is the JMX server url
# port is the port where the JMX server runs
# tag is the tag you want to associate to this instance, it's an optional parameter
# if not present the tag would be "server-port"
#activemq_jmx_instance_1: user:password@server:port:tag
#activemq_jmx_instance_2: user:password@server:port:tag
#...
# -------------------------------------------------------------------------- #
# Solr #
# -------------------------------------------------------------------------- #
# Get Solr metrics using JMX
# You can set multiple Solr instances, using the schema below
# user is the JMX user (if any) used to connect to the related JMX instance
# password is the JMX password (if any) used to connect to the related JMX instance
# server is the JMX server url
# port is the port where the JMX server runs
# tag is the tag you want to associate to this instance, it's an optional parameter
# if not present the tag would be "server-port"
#solr_jmx_instance_1: user:password@server:port:tag
#solr_jmx_instance_2: user:password@server:port:tag
#...
# -------------------------------------------------------------------------- #
# Memcache
# -------------------------------------------------------------------------- #
# You can set multiple memcache instances, using the schema below
# You can set a tag (optional), your memcache metrics will then be tagged
# instance:your_tag or instance:host_port if you don't specify one
#memcache_instance_1: localhost:11211:first_tag
#memcache_instance_2: second_host:second_port:second_tag
#memcache_instance_3: third_host:third_port:third_tag
# ...
# -------------------------------------------------------------------------- #
# Dogstream (log file parser)
# -------------------------------------------------------------------------- #
# Comma-separated list of logs to parse and optionally custom parsers to use.
# The form should look like this:
#
# dogstreams: /path/to/log1:parsers_module:custom_parser, /path/to/log2, /path/to/log3, ...
#
# Or this:
#
# dogstreams: /path/to/log1:/path/to/my/parsers_module.py:custom_parser, /path/to/log2, /path/to/log3, ...
#
# Each entry is a path to a log file and optionally a Python module/function pair
# separated by colons.
#
# Custom parsers should take a 2 parameters, a logger object and
# a string parameter of the current line to parse. It should return a tuple of
# the form:
# (metric (str), timestamp (unix timestamp), value (float), attributes (dict))
# where attributes should at least contain the key 'metric_type', specifying
# whether the given metric is a 'counter' or 'gauge'.
#
# Unless parsers are specified with an absolute path, the modules must exist in
# the agent's PYTHONPATH. You can set this as an environment variable when
# starting the agent. If the name of the custom parser function is not passed,
# 'parser' is assumed.
#
# If this value isn't specified, the default parser assumes this log format:
# metric timestamp value key0=val0 key1=val1 ...
#
# -------------------------------------------------------------------------- #
# Cacti
# -------------------------------------------------------------------------- #
#cacti_mysql_server: localhost
#cacti_mysql_user: dd-agent
#cacti_mysql_pass: agent
#cacti_rrd_path: /var/lib/cacti/rra
# If you want to whitelist only certain rrd files, you can add a list of patterns
# to a cacti rrd whitelist file, and reference it here.
# e.g.: *localhost_load*.rrd
#cacti_rrd_whitelist: /etc/dd-agent/cacti-whitelist.txt
# -------------------------------------------------------------------------- #
# Varnish
# -------------------------------------------------------------------------- #
#varnishstat: /usr/bin/varnishstat
# -------------------------------------------------------------------------- #
# Redis
#
# To monitor one or more redis instances, list their connection
# information below:
# -------------------------------------------------------------------------- #
#
#redis_urls: localhost:6379, password@myserver:16379
# -------------------------------------------------------------------------- #
# ElaticSearch
# -------------------------------------------------------------------------- #
#elasticsearch: http://localhost:9200/_cluster/nodes/stats?all=true
# -------------------------------------------------------------------------- #
# HAProxy
# -------------------------------------------------------------------------- #
#haproxy_url: https://localhost/admin?stats
# If basic authentification is enabled
#haproxy_user = username
#haproxy_password = password
# ========================================================================== #
# Custom Emitters #
# ========================================================================== #
# Comma-separated list of emitters to be used in addition to the standard one
#
# Expected to be passed as a comma-separated list of colon-delimited
# name/object pairs.
#
# custom_emitters: /usr/local/my-code/emitters/rabbitmq.py:RabbitMQEmitter
#
# If the name of the emitter function is not specified, 'emitter' is assumed.
# ========================================================================== #
# Custom Checks
# ========================================================================== #
# Comma-separated list of additional metric checks
#
# Expected to be passed as a comma-separated list of colon-delimited
# name/object pairs.
#
# custom_checks: /usr/local/my-code/checks/foo.py:FooCheck
#
# If the name of the check is not specified, 'Check' is assumed.
# ========================================================================== #
# WMI Metrics
# ========================================================================== #
[WMI]
# Each value should have the following structure:
#
# my.custom.metric_name: Win32_Metric_Name:value_to_use
#
# Example:
#
# system.users.count: Win32_OperatingSystem:NumberOfUsers
##############################################################################
#################### NOTHING TO MODIFY AFTER THIS LINE #######################
##############################################################################
# -------------------------------------------------------------------------- #
# Logging Configuration
#
# PLEASE READ ME!
#
# DO NOT PUT ANY INTEGRATION CONFIGURATION AFTER THIS SECTION
# IT WILL BE IGNORED.
# I REPEAT, IT WILL BE IGNORED.
#
# -------------------------------------------------------------------------- #
[loggers]
keys:root,dogstatsd,checks
[handlers]
keys:dogstatsd,checks
[formatters]
keys:ddagent
# DogStatsd logging
[logger_root]
level:INFO
handlers:
propagate:0
qualname:root
[logger_dogstatsd]
level:INFO
handlers:dogstatsd
propagate:0
qualname:dogstatsd
[logger_checks]
level:WARN
handlers:checks
propagate:0
qualname:checks
[handler_dogstatsd]
class:FileHandler
level:INFO
formatter:ddagent
args:('/tmp/dogstatsd.log', 'a')
[handler_checks]
class:FileHandler
level:WARN
formatter:ddagent
args:('/tmp/dd-agent.log', 'a')
[formatter_ddagent]
format: %(asctime)s | %(name)s | %(levelname)s | %(message)s
class:logging.Formatter
# IF YOU ADD ANYTHING HERE, IT WILL BE IGNORED
# SO IF YOU WANT TO CONFIGURE AN INTEGRATION,
# DO IT IN THE SECTION ABOVE