mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-07 02:45:21 +00:00
Update collectd.conf.tpl
Add ignore regexps for interface and df plugins to ignore docker trash. Add selection regexp for disk plugin to include /dev/xvd[az]. Enable StoreRates for write_graphite by default.
This commit is contained in:
parent
7bcbbfd008
commit
3f9e3d6249
@ -382,12 +382,15 @@ LoadPlugin xencpu
|
||||
Device "cgroup_root"
|
||||
Device "devtmpfs"
|
||||
Device "rootfs"
|
||||
Device "/^docker-.+/"
|
||||
Device "/^mapper_docker-.+/"
|
||||
IgnoreSelected true
|
||||
ReportByDevice true
|
||||
ReportInodes true
|
||||
</Plugin>
|
||||
<Plugin disk>
|
||||
Disk "/^[hs]d[a-z](:?[0-9]+)?$/"
|
||||
Disk "/^[hs]d[a-z]$/"
|
||||
Disk "/^xvd[a-z]$/"
|
||||
Disk "/^md[0-9]+$/"
|
||||
IgnoreSelected false
|
||||
</Plugin>
|
||||
@ -440,7 +443,8 @@ LoadPlugin xencpu
|
||||
{% endif %}
|
||||
|
||||
<Plugin interface>
|
||||
# IgnoreSelected false
|
||||
Interface "/^veth/"
|
||||
IgnoreSelected true
|
||||
</Plugin>
|
||||
|
||||
{% if "ipmi" in configured_plugins %}
|
||||
@ -1318,7 +1322,7 @@ LoadPlugin xencpu
|
||||
Port "{{ carbon.get('port', '2003') }}"
|
||||
Prefix "{{ carbon.get('prefix', 'collectd.') }}"
|
||||
Postfix "{{ carbon.get('postfix', '') }}"
|
||||
StoreRates {{ 'true' if carbon.get('store-rates', False) else 'false' }}
|
||||
StoreRates {{ 'true' if carbon.get('store-rates', True) else 'false' }}
|
||||
EscapeCharacter "{{ carbon.get('escape-character', '_') }}"
|
||||
</Carbon>
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user