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"; + } + ]; }; }; };