From a34d7b0754091db727c97933cab65c81df0844b8 Mon Sep 17 00:00:00 2001 From: Pierre Fersing Date: Wed, 6 Jun 2018 22:44:26 +0200 Subject: [PATCH] Ignore more boring filesystems from disk plugin (#4244) --- etc/telegraf.conf | 2 +- etc/telegraf_windows.conf | 2 +- plugins/inputs/system/DISK_README.md | 2 +- plugins/inputs/system/disk.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/telegraf.conf b/etc/telegraf.conf index dbf142c2f..f51e973df 100644 --- a/etc/telegraf.conf +++ b/etc/telegraf.conf @@ -1077,7 +1077,7 @@ # mount_points = ["/"] ## Ignore mount points by filesystem type. - ignore_fs = ["tmpfs", "devtmpfs", "devfs"] + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"] # Read metrics about disk IO by device diff --git a/etc/telegraf_windows.conf b/etc/telegraf_windows.conf index ed5ce1fba..54b7ee0e1 100644 --- a/etc/telegraf_windows.conf +++ b/etc/telegraf_windows.conf @@ -242,7 +242,7 @@ # # ## Ignore some mountpoints by filesystem type. For example (dev)tmpfs (usually # ## present on /run, /var/run, /dev/shm or /dev). -# # ignore_fs = ["tmpfs", "devtmpfs"] +# # ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"] # # Read metrics about disk IO by device diff --git a/plugins/inputs/system/DISK_README.md b/plugins/inputs/system/DISK_README.md index b647f8128..fa84264be 100644 --- a/plugins/inputs/system/DISK_README.md +++ b/plugins/inputs/system/DISK_README.md @@ -16,7 +16,7 @@ https://en.wikipedia.org/wiki/Df_(Unix) for more details. # mount_points = ["/"] ## Ignore mount points by filesystem type. - ignore_fs = ["tmpfs", "devtmpfs", "devfs"] + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"] ``` #### Docker container diff --git a/plugins/inputs/system/disk.go b/plugins/inputs/system/disk.go index 864b28477..172261560 100644 --- a/plugins/inputs/system/disk.go +++ b/plugins/inputs/system/disk.go @@ -28,7 +28,7 @@ var diskSampleConfig = ` # mount_points = ["/"] ## Ignore mount points by filesystem type. - ignore_fs = ["tmpfs", "devtmpfs", "devfs"] + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"] ` func (_ *DiskStats) SampleConfig() string {