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.
btop
Dustin 2022-08-03 21:21:36 -05:00
parent 8cab0b368e
commit c48cc985b2
3 changed files with 14 additions and 0 deletions

View File

@ -8,3 +8,7 @@ collectd_processes_controller:
- name: etcd
- name: kube-apiserver
- name: kube-controller
collectd_df_ignore_mountpoint:
- /etc/cni/net.d
- /opt/cni
- /usr/libexec/kubernetes/kubelet-plugins

View File

@ -2,6 +2,7 @@ collectd_default_config: true
collectd_load_network_plugin: false
collectd_network_servers: []
collectd_network_listen: []
collectd_df_ignore_mountpoint: []
collectd_df_ignore_fstype:
- overlay

View File

@ -6,3 +6,12 @@
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 %}