-
Notifications
You must be signed in to change notification settings - Fork 54
/
collectd.conf.tmpl
executable file
·120 lines (101 loc) · 2.2 KB
/
collectd.conf.tmpl
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
TypesDB "{{collectdRoot}}/usr/share/collectd/types.db"
PluginDir "{{collectdRoot}}/usr/lib/collectd"
BaseDir "{{collectdRoot}}"
Hostname "{{hostName}}"
FQDNLookup false
#Timeout needs to be high otherwise we can
#cause a invalidation storm on large # of tables
Interval 10
Timeout 10
ReadThreads 5
WriteThreads 5
WriteQueueLimitHigh 500000
WriteQueueLimitLow 500000
CollectInternalStats true
LoadPlugin logfile
<Plugin "logfile">
File "{{logDir}}/cassandra-collectd.log"
LogLevel "info"
</Plugin>
LoadPlugin write_scribe
<Plugin "write_scribe">
ConfigFile "{{scribeConfigFile}}"
<File "{{logDir}}/cassandra-collectd.log">
Instance "collectd.log"
</File>
SocketFile "{{socketFile}}"
</Plugin>
LoadPlugin write_prometheus
<Plugin write_prometheus>
Port "9103"
</Plugin>
LoadPlugin cpu
LoadPlugin df
<Plugin df>
FsType "ext3"
FsType "ext4"
FsType "xfs"
FsType "zfs"
IgnoreSelected False
</Plugin>
{{^isMac}}
LoadPlugin vmem
LoadPlugin numa
LoadPlugin contextswitch
LoadPlugin cpufreq
LoadPlugin irq
LoadPlugin protocols
LoadPlugin ethstat
{{/isMac}}
LoadPlugin disk
<Plugin "disk">
Disk "/^loop\d+$/"
Disk "/^dm-\d+$/"
IgnoreSelected "true"
</Plugin>
LoadPlugin interface
<Plugin "interface">
Interface "/^lo\d*$/"
Interface "/^docker.*/"
Interface "/^t(un|ap)\d*$/"
Interface "/^veth.*$/"
IgnoreSelected "true"
</Plugin>
LoadPlugin load
LoadPlugin memory
LoadPlugin swap
LoadPlugin uptime
LoadPlugin processes
LoadPlugin tcpconns
<Plugin "processes">
ProcessMatch "all" ".*"
</Plugin>
<Plugin "tcpconns">
ListeningPorts true
</Plugin>
LoadPlugin match_regex
LoadPlugin target_set
LoadPlugin target_replace
PreCacheChain "PreCache"
<Chain "PreCache">
<Rule "add_topology_tags">
<Match regex>
Plugin ".*" #Match all
</Match>
<Target "set">
MetaData "cluster" "{{cluster}}"
MetaData "dc" "{{dataCenter}}"
MetaData "rack" "{{rack}}"
</Target>
</Rule>
<Rule "add_series_tag">
<Match regex>
Plugin "^(cpu|interfaces|disk)$"
</Match>
<Target "set">
MetaData "insight_series" "1"
</Target>
</Rule>
</Chain>
Include "/etc/cassandra/collectd/*.conf"
Include "{{collectdRoot}}/etc/collectd/*.conf"