Skip to content
Snippets Groups Projects
Commit f079839f authored by Kerri Wait's avatar Kerri Wait
Browse files

Refactor telegraf.conf.j2 to pull inputs.ethtool conf out into template

parent 57ca8a7a
No related branches found
No related tags found
4 merge requests!399Capture extra NFS stats,!393Hotfix: monitor NFS GETATTR stats via telegraf,!392Temporarily disable inputs.filecount in telegraf,!389Update telegraf config to ignore more ethX interfaces in ethtool plugin
...@@ -71,6 +71,20 @@ ...@@ -71,6 +71,20 @@
tags: tags:
- configuration - configuration
- name: Install ethtool plugin for mlx interfaces
template:
src: inputs.ethtool.conf.j2
dest: /etc/telegraf/telegraf.d/inputs.ethtool.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 - name: Install multifile plugin for mlx hw_counters
template: template:
src: inputs.multifile_mlx.conf.j2 src: inputs.multifile_mlx.conf.j2
......
# Returns ethtool statistics for given interfaces
[[inputs.ethtool]]
interval = "60s"
# List of interfaces to pull metrics for
# interface_include = ["mlx0", "p1p1"]
# List of interfaces to ignore when pulling metrics.
interface_exclude = ["eth0", "eth00", "eth1", "eth2", "lo", "virbr0", "virbr0-nic"]
\ No newline at end of file
...@@ -119,15 +119,6 @@ ...@@ -119,15 +119,6 @@
# Uncomment the following line if you do not need disk serial numbers. # Uncomment the following line if you do not need disk serial numbers.
# skip_serial_number = true # skip_serial_number = true
# Returns ethtool statistics for given interfaces
[[inputs.ethtool]]
interval = "60s"
# List of interfaces to pull metrics for
# interface_include = ["mlx0", "p1p1"]
# List of interfaces to ignore when pulling metrics.
interface_exclude = ["eth0", "eth00", "eth1", "eth2", "lo", "virbr0", "virbr0-nic"]
# Read metrics about the number of files in /home # Read metrics about the number of files in /home
[[inputs.filecount]] [[inputs.filecount]]
directories = ["/home"] directories = ["/home"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment