From 7b3441216c2095840e4a7bff68b9f786622f177d Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 11 Dec 2024 19:44:07 +0100 Subject: [PATCH] Update telegraf, track kernel version --- nixos/common/services/telegraf.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/nixos/common/services/telegraf.nix b/nixos/common/services/telegraf.nix index fc5d30d0..de48e34a 100644 --- a/nixos/common/services/telegraf.nix +++ b/nixos/common/services/telegraf.nix @@ -65,12 +65,20 @@ }; temp = {}; wireless = {}; - exec = { - commands = [ "/run/current-system/sw/bin/nixos-version" ]; - name_suffix = "_nixos-version"; - data_format = "value"; - data_type = "string"; - }; + exec =[ + { + commands = [ "/run/current-system/sw/bin/nixos-version" ]; + name_suffix = "_nixos-version"; + data_format = "value"; + data_type = "string"; + } + { + commands = [ "/run/current-system/sw/bin/uname" "-r" ]; + name_suffix = "_kernel-version"; + data_format = "value"; + data_type = "string"; + } + ]; }; }; };