From 5d69bdfbdfe39cf6773f23fa9793b3ce415a8097 Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Tue, 3 Sep 2024 11:02:58 +0800 Subject: [PATCH] fix: telegraf config file format error (#21145) Co-authored-by: Qiu Jian --- pkg/hostman/system_service/telegraf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/hostman/system_service/telegraf.go b/pkg/hostman/system_service/telegraf.go index 3255da2d52..d3e1264015 100644 --- a/pkg/hostman/system_service/telegraf.go +++ b/pkg/hostman/system_service/telegraf.go @@ -110,8 +110,8 @@ func (s *STelegraf) GetConfig(kwargs map[string]interface{}) string { conf += " report_active = true\n" conf += "\n" conf += "[[inputs.disk]]\n" - conf += " ignore_mount_points = [\"/etc/telegraf\", \"/etc/hosts\", \"/etc/hostname\", \"/etc/resolv.conf\", \"/dev/termination-log\"]" - conf += " ignore_fs = [\"tmpfs\", \"devtmpfs\", \"overlay\", \"squashfs\", \"iso9660\", \"rootfs\", \"hugetlbfs\"]\n" + conf += " ignore_mount_points = [\"/etc/telegraf\", \"/etc/hosts\", \"/etc/hostname\", \"/etc/resolv.conf\", \"/dev/termination-log\"]\n" + conf += " ignore_fs = [\"tmpfs\", \"devtmpfs\", \"overlay\", \"squashfs\", \"iso9660\", \"rootfs\", \"hugetlbfs\", \"autofs\"]\n" conf += "\n" conf += "[[inputs.diskio]]\n" conf += " skip_serial_number = false\n"