File: default_conf.h.in

package info (click to toggle)
ganglia 3.6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 6,484 kB
  • ctags: 3,880
  • sloc: ansic: 27,874; sh: 11,052; python: 6,695; makefile: 565; perl: 366; php: 126; xml: 28
file content (470 lines) | stat: -rw-r--r-- 11,975 bytes parent folder | download | duplicates (2)
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
#ifndef DEFAULT_CONF_H
#define DEFAULT_CONF_H 1

char *default_gmond_configuration = NULL;

#if NO_SETUID == 0
#define DO_SETUID_STRING "yes"
#else
#define DO_SETUID_STRING "no"
#endif

#define BASE_GMOND_CONFIGURATION "\
/* This configuration is as close to 2.5.x default behavior as possible\n\
   The values closely match ./gmond/metric.h definitions in 2.5.x */\n\
globals {\n\
  daemonize = yes\n\
  setuid = " DO_SETUID_STRING "\n\
  user = " SETUID_USER "\n\
  debug_level = 0\n\
  max_udp_msg_len = 1472\n\
  mute = no\n\
  deaf = no\n\
  allow_extra_data = yes\n\
  host_dmax = 86400 /*secs. Expires (removes from web interface) hosts in 1 day */\n\
  host_tmax = 20 /*secs */\n\
  cleanup_threshold = 300 /*secs */\n\
  gexec = no\n\
  # By default gmond will use reverse DNS resolution when displaying your hostname\n\
  # Uncommeting following value will override that value.\n\
  # override_hostname = \"mywebserver.domain.com\"\n\
  # If you are not using multicast this value should be set to something other than 0.\n\
  # Otherwise if you restart aggregator gmond you will get empty graphs. 60 seconds is reasonable\n\
  send_metadata_interval = 0 /*secs */\n\
\n\
}\n\
\n\
/*\n\
 * The cluster attributes specified will be used as part of the <CLUSTER>\n\
 * tag that will wrap all hosts collected by this instance.\n\
 */\n\
cluster {\n\
  name = \"unspecified\"\n\
  owner = \"unspecified\"\n\
  latlong = \"unspecified\"\n\
  url = \"unspecified\"\n\
}\n\
\n\
/* The host section describes attributes of the host, like the location */\n\
host {\n\
  location = \"unspecified\"\n\
}\n\
\n\
/* Feel free to specify as many udp_send_channels as you like.  Gmond\n\
   used to only support having a single channel */\n\
udp_send_channel {\n\
  #bind_hostname = yes # Highly recommended, soon to be default.\n\
                       # This option tells gmond to use a source address\n\
                       # that resolves to the machine's hostname.  Without\n\
                       # this, the metrics may appear to come from any\n\
                       # interface and the DNS names associated with\n\
                       # those IPs will be used to create the RRDs.\n\
  mcast_join = 239.2.11.71\n\
  port = 8649\n\
  ttl = 1\n\
}\n\
\n\
/* You can specify as many udp_recv_channels as you like as well. */\n\
udp_recv_channel {\n\
  mcast_join = 239.2.11.71\n\
  port = 8649\n\
  bind = 239.2.11.71\n\
  retry_bind = true\n\
  # Size of the UDP buffer. If you are handling lots of metrics you really\n\
  # should bump it up to e.g. 10MB or even higher.\n\ 
  # buffer = 10485760\n\
}\n\
\n\
/* You can specify as many tcp_accept_channels as you like to share\n\
   an xml description of the state of the cluster */\n\
tcp_accept_channel {\n\
  port = 8649\n\
  # If you want to gzip XML output\n\
  gzip_output = no\n\
}\n\
\n\
"

#define SFLOW_CONFIGURATION "\
/* Channel to receive sFlow datagrams */\n\
#udp_recv_channel {\n\
#  port = 6343\n\
#}\n\
\n\
/* Optional sFlow settings */\n\
#sflow {\n\
# udp_port = 6343\n\
# accept_vm_metrics = yes\n\
# accept_jvm_metrics = yes\n\
# multiple_jvm_instances = no\n\
# accept_http_metrics = yes\n\
# multiple_http_instances = no\n\
# accept_memcache_metrics = yes\n\
# multiple_memcache_instances = no\n\
#}\n\
\n\
"

#define COLLECTION_GROUP_LIST "\
/* Each metrics module that is referenced by gmond must be specified and\n\
   loaded. If the module has been statically linked with gmond, it does\n\
   not require a load path. However all dynamically loadable modules must\n\
   include a load path. */\n\
modules {\n\
  module {\n\
    name = \"core_metrics\"\n\
  }\n\
  module {\n\
    name = \"cpu_module\"\n\
@modpathstart@    path = \"modcpu.so\"\n\
  }\n\
  module {\n\
    name = \"disk_module\"\n\
@modpathstart@    path = \"moddisk.so\"\n\
  }\n\
  module {\n\
    name = \"load_module\"\n\
@modpathstart@    path = \"modload.so\"\n\
  }\n\
  module {\n\
    name = \"mem_module\"\n\
@modpathstart@    path = \"modmem.so\"\n\
  }\n\
  module {\n\
    name = \"net_module\"\n\
@modpathstart@    path = \"modnet.so\"\n\
  }\n\
  module {\n\
    name = \"proc_module\"\n\
@modpathstart@    path = \"modproc.so\"\n\
  }\n\
  module {\n\
    name = \"sys_module\"\n\
@modpathstart@    path = \"modsys.so\"\n\
  }\n\
}\n\
\n\
/* The old internal 2.5.x metric array has been replaced by the following\n\
   collection_group directives.  What follows is the default behavior for\n\
   collecting and sending metrics that is as close to 2.5.x behavior as\n\
   possible. */\n\
\n\
/* This collection group will cause a heartbeat (or beacon) to be sent every\n\
   20 seconds.  In the heartbeat is the GMOND_STARTED data which expresses\n\
   the age of the running gmond. */\n\
collection_group {\n\
  collect_once = yes\n\
  time_threshold = 20\n\
  metric {\n\
    name = \"heartbeat\"\n\
  }\n\
}\n\
\n\
/* This collection group will send general info about this host every\n\
   1200 secs.\n\
   This information doesn't change between reboots and is only collected\n\
   once. */\n\
collection_group {\n\
  collect_once = yes\n\
  time_threshold = 1200\n\
  metric {\n\
    name = \"cpu_num\"\n\
    title = \"CPU Count\"\n\
  }\n\
  metric {\n\
    name = \"cpu_speed\"\n\
    title = \"CPU Speed\"\n\
  }\n\
  metric {\n\
    name = \"mem_total\"\n\
    title = \"Memory Total\"\n\
  }\n\
  /* Should this be here? Swap can be added/removed between reboots. */\n\
  metric {\n\
    name = \"swap_total\"\n\
    title = \"Swap Space Total\"\n\
  }\n\
  metric {\n\
    name = \"boottime\"\n\
    title = \"Last Boot Time\"\n\
  }\n\
  metric {\n\
    name = \"machine_type\"\n\
    title = \"Machine Type\"\n\
  }\n\
  metric {\n\
    name = \"os_name\"\n\
    title = \"Operating System\"\n\
  }\n\
  metric {\n\
    name = \"os_release\"\n\
    title = \"Operating System Release\"\n\
  }\n\
  metric {\n\
    name = \"location\"\n\
    title = \"Location\"\n\
  }\n\
}\n\
\n\
/* This collection group will send the status of gexecd for this host\n\
   every 300 secs.*/\n\
/* Unlike 2.5.x the default behavior is to report gexecd OFF. */\n\
collection_group {\n\
  collect_once = yes\n\
  time_threshold = 300\n\
  metric {\n\
    name = \"gexec\"\n\
    title = \"Gexec Status\"\n\
  }\n\
}\n\
\n\
/* This collection group will collect the CPU status info every 20 secs.\n\
   The time threshold is set to 90 seconds.  In honesty, this\n\
   time_threshold could be set significantly higher to reduce\n\
   unneccessary  network chatter. */\n\
collection_group {\n\
  collect_every = 20\n\
  time_threshold = 90\n\
  /* CPU status */\n\
  metric {\n\
    name = \"cpu_user\"\n\
    value_threshold = \"1.0\"\n\
    title = \"CPU User\"\n\
  }\n\
  metric {\n\
    name = \"cpu_system\"\n\
    value_threshold = \"1.0\"\n\
    title = \"CPU System\"\n\
  }\n\
  metric {\n\
    name = \"cpu_idle\"\n\
    value_threshold = \"5.0\"\n\
    title = \"CPU Idle\"\n\
  }\n\
  metric {\n\
    name = \"cpu_nice\"\n\
    value_threshold = \"1.0\"\n\
    title = \"CPU Nice\"\n\
  }\n\
  metric {\n\
    name = \"cpu_aidle\"\n\
    value_threshold = \"5.0\"\n\
    title = \"CPU aidle\"\n\
  }\n\
  metric {\n\
    name = \"cpu_wio\"\n\
    value_threshold = \"1.0\"\n\
    title = \"CPU wio\"\n\
  }\n\
  metric {\n\
    name = \"cpu_steal\"\n\
    value_threshold = \"1.0\"\n\
    title = \"CPU steal\"\n\
  }\n\
  /* The next two metrics are optional if you want more detail...\n\
     ... since they are accounted for in cpu_system.\n\
  metric {\n\
    name = \"cpu_intr\"\n\
    value_threshold = \"1.0\"\n\
    title = \"CPU intr\"\n\
  }\n\
  metric {\n\
    name = \"cpu_sintr\"\n\
    value_threshold = \"1.0\"\n\
    title = \"CPU sintr\"\n\
  }\n\
  */\n\
}\n\
\n\
collection_group {\n\
  collect_every = 20\n\
  time_threshold = 90\n\
  /* Load Averages */\n\
  metric {\n\
    name = \"load_one\"\n\
    value_threshold = \"1.0\"\n\
    title = \"One Minute Load Average\"\n\
  }\n\
  metric {\n\
    name = \"load_five\"\n\
    value_threshold = \"1.0\"\n\
    title = \"Five Minute Load Average\"\n\
  }\n\
  metric {\n\
    name = \"load_fifteen\"\n\
    value_threshold = \"1.0\"\n\
    title = \"Fifteen Minute Load Average\"\n\
  }\n\
}\n\
\n\
/* This group collects the number of running and total processes */\n\
collection_group {\n\
  collect_every = 80\n\
  time_threshold = 950\n\
  metric {\n\
    name = \"proc_run\"\n\
    value_threshold = \"1.0\"\n\
    title = \"Total Running Processes\"\n\
  }\n\
  metric {\n\
    name = \"proc_total\"\n\
    value_threshold = \"1.0\"\n\
    title = \"Total Processes\"\n\
  }\n\
}\n\
\n\
/* This collection group grabs the volatile memory metrics every 40 secs and\n\
   sends them at least every 180 secs.  This time_threshold can be increased\n\
   significantly to reduce unneeded network traffic. */\n\
collection_group {\n\
  collect_every = 40\n\
  time_threshold = 180\n\
  metric {\n\
    name = \"mem_free\"\n\
    value_threshold = \"1024.0\"\n\
    title = \"Free Memory\"\n\
  }\n\
  metric {\n\
    name = \"mem_shared\"\n\
    value_threshold = \"1024.0\"\n\
    title = \"Shared Memory\"\n\
  }\n\
  metric {\n\
    name = \"mem_buffers\"\n\
    value_threshold = \"1024.0\"\n\
    title = \"Memory Buffers\"\n\
  }\n\
  metric {\n\
    name = \"mem_cached\"\n\
    value_threshold = \"1024.0\"\n\
    title = \"Cached Memory\"\n\
  }\n\
  metric {\n\
    name = \"swap_free\"\n\
    value_threshold = \"1024.0\"\n\
    title = \"Free Swap Space\"\n\
  }\n\
}\n\
\n\
collection_group {\n\
  collect_every = 40\n\
  time_threshold = 300\n\
  metric {\n\
    name = \"bytes_out\"\n\
    value_threshold = 4096\n\
    title = \"Bytes Sent\"\n\
  }\n\
  metric {\n\
    name = \"bytes_in\"\n\
    value_threshold = 4096\n\
    title = \"Bytes Received\"\n\
  }\n\
  metric {\n\
    name = \"pkts_in\"\n\
    value_threshold = 256\n\
    title = \"Packets Received\"\n\
  }\n\
  metric {\n\
    name = \"pkts_out\"\n\
    value_threshold = 256\n\
    title = \"Packets Sent\"\n\
  }\n\
}\n\
\n\
/* Different than 2.5.x default since the old config made no sense */\n\
collection_group {\n\
  collect_every = 1800\n\
  time_threshold = 3600\n\
  metric {\n\
    name = \"disk_total\"\n\
    value_threshold = 1.0\n\
    title = \"Total Disk Space\"\n\
  }\n\
}\n\
\n\
collection_group {\n\
  collect_every = 40\n\
  time_threshold = 180\n\
  metric {\n\
    name = \"disk_free\"\n\
    value_threshold = 1.0\n\
    title = \"Disk Space Available\"\n\
  }\n\
  metric {\n\
    name = \"part_max_used\"\n\
    value_threshold = 1.0\n\
    title = \"Maximum Disk Space Used\"\n\
  }\n\
}\n\
\n\
include (\"" SYSCONFDIR "/conf.d/*.conf\")\n\
\n\
"

#define SOLARIS_SPECIFIC_CONFIGURATION "\
/* solaris specific metrics begin */\n\
collection_group {\n\
  collect_every = 20\n\
  time_threshold = 90\n\
  metric {\n\
   name = \"rcache\"\n\
   value_threshold = 1.0\n\
  }\n\
  metric {\n\
   name = \"wcache\"\n\
   value_threshold = 1.0\n\
  }\n\
  metric {\n\
    name = \"bread_sec\"\n\
    value_threshold = 1.0\n\
  }\n\
  metric {\n\
    name = \"bwrite_sec\"\n\
    value_threshold = 1.0\n\
  }\n\
  metric {\n\
    name = \"lread_sec\"\n\
    value_threshold = 1.0\n\
  }\n\
  metric {\n\
    name = \"lwrite_sec\"\n\
    value_threshold = 1.0\n\
  }\n\
  metric {\n\
    name = \"phread_sec\"\n\
    value_threshold = 1.0\n\
  }\n\
  metric {\n\
    name = \"phwrite_sec\"\n\
    value_threshold = 1.0\n\
  }\n\
}\n\
/* end solaris specific metrics */\n\
\n\
"

#define HPUX_SPECIFIC_CONFIGURATION "\n\
collection_group {\n\
  collect_every = 40\n\
  time_threshold = 90\n\
  metric {\n\
    name = \"mem_arm\"\n\
    value_threshold = 1024.0\n\
  }\n\
  metric {\n\
    name = \"mem_rm\"\n\
    value_threshold = 1024.0\n\
  }\n\
  metric {\n\
    name = \"mem_avm\"\n\
    value_threshold = 1024.0\n\
  }\n\
  metric {\n\
    name = \"mem_vm\"\n\
    value_threshold = 1024.0\n\
  }\n\
}\n\
\n\
"

#endif