blob: 9effa21724dbac121e26ed3007b6553715550131 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
LoadPlugin df
<Plugin "df">
FSType "devfs"
IgnoreSelected true
ReportByDevice true
ValuesPercentage true
</Plugin>
LoadPlugin docker
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 processes
LoadPlugin tcpconns
LoadPlugin match_regex
LoadPlugin match_throttle_metadata_keys
LoadPlugin stackdriver_agent
<Plugin "processes">
ProcessMatch "all" ".*"
Detail "ps_vm"
Detail "ps_cputime"
</Plugin>
<Plugin "disk">
# No config - collectd fails parsing configuration if tag is empty.
</Plugin>
<Plugin "tcpconns">
AllPortsSummary true
</Plugin>
LoadPlugin aggregation
LoadPlugin "match_regex"
<Plugin "memory">
ValuesPercentage true
</Plugin>
PostCacheChain "PostCache"
<Chain "PostCache">
<Rule "processes">
<Match "regex">
Plugin "^processes$"
Type "^(ps_vm|ps_cputime)$"
</Match>
<Target "jump">
Chain "MaybeThrottleProcesses"
</Target>
Target "stop"
</Rule>
<Rule "otherwise">
<Match "throttle_metadata_keys">
OKToThrottle false
</Match>
<Target "write">
Plugin "write_gcm"
</Target>
</Rule>
</Chain>
<Chain "MaybeThrottleProcesses">
<Rule "default">
<Match "throttle_metadata_keys">
OKToThrottle true
TrackedMetadata "processes:pid"
TrackedMetadata "processes:command"
TrackedMetadata "processes:command_line"
TrackedMetadata "processes:owner"
</Match>
<Target "write">
Plugin "write_gcm"
</Target>
</Rule>
</Chain>