diff --git a/templates/telegraf.conf.j2 b/templates/telegraf.conf.j2 index 615a7cc..5dad2cd 100644 --- a/templates/telegraf.conf.j2 +++ b/templates/telegraf.conf.j2 @@ -28,9 +28,8 @@ ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"] [[inputs.diskio]] - devices = ["vd*"] - [[inputs.kernel]] +[[inputs.kernel_vmstat]] [[inputs.mem]] [[inputs.processes]] [[inputs.swap]] @@ -87,3 +86,8 @@ {% endif %} #[[inputs.syslog]] + +{% if inventory_hostname == "n1" %} +[[inputs.wireguard]] + devices = ["wg0"] +{% endif %}