diff --git a/roles/telegraf/tasks/main.yml b/roles/telegraf/tasks/main.yml index 39bc7d2c0d4d08d4f858f8f54da20b7d67008259..dbe0cf5af04f15acc382ac3811cfd0853fcc0d09 100644 --- a/roles/telegraf/tasks/main.yml +++ b/roles/telegraf/tasks/main.yml @@ -85,6 +85,21 @@ tags: - configuration +# Commented out by KW 13th Oct 2020 - will restore shortly +#- name: Install filecount plugin for /home counts +# template: +# src: inputs.filecount.conf.j2 +# dest: /etc/telegraf/telegraf.d/inputs.filecount.conf +# owner: telegraf +# group: telegraf +# mode: '640' +# notify: +# - "restart telegraf" +# become: true +# become_user: root +# tags: +# - configuration + - name: Install multifile plugin for mlx hw_counters template: src: inputs.multifile_mlx.conf.j2 diff --git a/roles/telegraf/templates/inputs.filecount.conf b/roles/telegraf/templates/inputs.filecount.conf new file mode 100644 index 0000000000000000000000000000000000000000..24ce3fbdfc8ae2cd2dce7e5f87968af19bc4ec64 --- /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 02b7c6c438c17285535fcdcf11331c80360774aa..f766f4b463cd836eaba9c7b426ef70242535bec5 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.