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 "cgroup_root"
|
||||||
Device "devtmpfs"
|
Device "devtmpfs"
|
||||||
Device "rootfs"
|
Device "rootfs"
|
||||||
|
Device "/^docker-.+/"
|
||||||
|
Device "/^mapper_docker-.+/"
|
||||||
IgnoreSelected true
|
IgnoreSelected true
|
||||||
ReportByDevice true
|
ReportByDevice true
|
||||||
ReportInodes true
|
ReportInodes true
|
||||||
</Plugin>
|
</Plugin>
|
||||||
<Plugin disk>
|
<Plugin disk>
|
||||||
Disk "/^[hs]d[a-z](:?[0-9]+)?$/"
|
Disk "/^[hs]d[a-z]$/"
|
||||||
|
Disk "/^xvd[a-z]$/"
|
||||||
Disk "/^md[0-9]+$/"
|
Disk "/^md[0-9]+$/"
|
||||||
IgnoreSelected false
|
IgnoreSelected false
|
||||||
</Plugin>
|
</Plugin>
|
||||||
@ -440,7 +443,8 @@ LoadPlugin xencpu
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<Plugin interface>
|
<Plugin interface>
|
||||||
# IgnoreSelected false
|
Interface "/^veth/"
|
||||||
|
IgnoreSelected true
|
||||||
</Plugin>
|
</Plugin>
|
||||||
|
|
||||||
{% if "ipmi" in configured_plugins %}
|
{% if "ipmi" in configured_plugins %}
|
||||||
@ -1318,7 +1322,7 @@ LoadPlugin xencpu
|
|||||||
Port "{{ carbon.get('port', '2003') }}"
|
Port "{{ carbon.get('port', '2003') }}"
|
||||||
Prefix "{{ carbon.get('prefix', 'collectd.') }}"
|
Prefix "{{ carbon.get('prefix', 'collectd.') }}"
|
||||||
Postfix "{{ carbon.get('postfix', '') }}"
|
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', '_') }}"
|
EscapeCharacter "{{ carbon.get('escape-character', '_') }}"
|
||||||
</Carbon>
|
</Carbon>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user