From 4f25f7b36d96f178b1794fa6c235e6bdaf3093f1 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 19 Jun 2020 23:26:00 +0200 Subject: [PATCH] Add wireguard and vmstat monitoring, monitor all disk IO --- templates/telegraf.conf.j2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 %}