From effccfbc604b5ad3f4cfe37fae313a1d0915f2f0 Mon Sep 17 00:00:00 2001 From: Kerri Wait <kerri.wait@monash.edu> Date: Tue, 13 Oct 2020 12:17:38 +1100 Subject: [PATCH] Pull inputs.filecount into individual template, not main telegraf.conf --- roles/telegraf/templates/inputs.filecount.conf | 6 ++++++ roles/telegraf/templates/telegraf.conf.j2 | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 roles/telegraf/templates/inputs.filecount.conf diff --git a/roles/telegraf/templates/inputs.filecount.conf b/roles/telegraf/templates/inputs.filecount.conf new file mode 100644 index 00000000..24ce3fbd --- /dev/null +++ b/roles/telegraf/templates/inputs.filecount.conf @@ -0,0 +1,6 @@ +# Read metrics about the number of files in /home +[[inputs.filecount]] + directories = ["/home"] + recursive = false + regular_only = false + interval = "60s" \ No newline at end of file diff --git a/roles/telegraf/templates/telegraf.conf.j2 b/roles/telegraf/templates/telegraf.conf.j2 index 02b7c6c4..f766f4b4 100644 --- a/roles/telegraf/templates/telegraf.conf.j2 +++ b/roles/telegraf/templates/telegraf.conf.j2 @@ -119,13 +119,6 @@ # Uncomment the following line if you do not need disk serial numbers. # skip_serial_number = true -# Read metrics about the number of files in /home -[[inputs.filecount]] - directories = ["/home"] - recursive = false - regular_only = false - interval = "60s" - # Collect statistics about itself [[inputs.internal]] ## If true, collect telegraf memory stats. -- GitLab