In addition to ignoring particular types of filesystems, e.g. OverlayFS, we can also ignore filesystems by their mount point. This could be useful, for example, for bind-mounted directories, such as those used on Kubernetes nodes.
18 lines
363 B
Django/Jinja
18 lines
363 B
Django/Jinja
{% if collectd_df_ignore_fstype %}
|
|
<Plugin df>
|
|
{% for fstype in collectd_df_ignore_fstype %}
|
|
FSType {{ fstype }}
|
|
{% endfor %}
|
|
IgnoreSelected true
|
|
</Plugin>
|
|
{% endif %}
|
|
{% if collectd_df_ignore_mountpoint %}
|
|
|
|
<Plugin df>
|
|
{% for path in collectd_df_ignore_mountpoint %}
|
|
MountPoint "{{ path }}"
|
|
{% endfor %}
|
|
IgnoreSelected true
|
|
</Plugin>
|
|
{% endif %}
|