Files
configpolicy/roles/collectd/templates/collectd-df.conf.j2
Dustin C. Hatch c48cc985b2 r/collectd: Ignore filesystems by path
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.
2022-08-05 18:56:48 -05:00

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 %}