-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcollectd-no-process-metrics.conf
82 lines (71 loc) · 1.89 KB
/
collectd-no-process-metrics.conf
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
# This file is a variant of the default collectd.conf with process metrics disabled.
Interval 60
# Explicitly set hostname to "" to indicate the default resource.
Hostname ""
# The Stackdriver agent does not use fully qualified domain names.
FQDNLookup false
LoadPlugin syslog
<Plugin "syslog">
LogLevel "info"
</Plugin>
# if you uncomment this, you will get collectd logs separate from syslog
#LoadPlugin logfile
#<Plugin "logfile">
# LogLevel "info"
# File "/var/log/collectd.log"
# Timestamp true
#</Plugin>
LoadPlugin df
<Plugin "df">
FSType "devfs"
IgnoreSelected true
ReportByDevice true
ValuesPercentage true
</Plugin>
LoadPlugin cpu
<Plugin "cpu">
ValuesPercentage true
ReportByCpu false
</Plugin>
LoadPlugin swap
<Plugin "swap">
ValuesPercentage true
</Plugin>
LoadPlugin interface
LoadPlugin disk
LoadPlugin load
LoadPlugin memory
<Plugin "memory">
ValuesPercentage true
</Plugin>
LoadPlugin tcpconns
LoadPlugin write_gcm
LoadPlugin match_regex
LoadPlugin match_throttle_metadata_keys
LoadPlugin stackdriver_agent
<Plugin "disk">
# No config - collectd fails parsing configuration if tag is empty.
</Plugin>
<Plugin "tcpconns">
AllPortsSummary true
</Plugin>
LoadPlugin exec
# Monitor the Stackdriver Logging agent. This should fail gracefully if for any
# reason the metrics endpoint for the Logging agent isn't reachable.
<Plugin "exec">
# The script doesn't need any privileges, so run as 'nobody'.
Exec "nobody" "/opt/stackdriver/collectd/bin/stackdriver-read_agent_logging" "http://localhost:24231/metrics"
</Plugin>
LoadPlugin aggregation
LoadPlugin "match_regex"
<Plugin "memory">
ValuesPercentage true
</Plugin>
<Plugin "write_gcm">
PrettyPrintJSON false
# EnableMetadataAgent true
</Plugin>
# if you have other config, especially for plugins, you can drop them
# into this directory
Include "/opt/stackdriver/collectd/etc/collectd.d"
Include "/etc/stackdriver/collectd.d"