From 0061f2b45f9c79a86dfe395e1cbfad8beebf765a Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 18 Jun 2023 19:58:22 +0200 Subject: [PATCH] Home assistant: system monitor --- loki/configuration.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/loki/configuration.nix b/loki/configuration.nix index a0a0922..89075f9 100644 --- a/loki/configuration.nix +++ b/loki/configuration.nix @@ -365,6 +365,43 @@ with lib; { ]; recorder.purge_keep_days = 30; script = "!include scripts.yaml"; + sensor = [{ + platform = "systemmonitor"; + resources = [ + { type = "disk_use_percent"; } + { type = "disk_use"; } + { type = "disk_free"; } + { type = "memory_use_percent"; } + { type = "memory_use"; } + { type = "memory_free"; } + { type = "swap_use_percent"; } + { type = "swap_use"; } + { type = "swap_free"; } + { type = "load_1m"; } + { type = "load_5m"; } + { type = "load_15m"; } + { type = "network_in"; arg = "eno1"; } + { type = "network_out"; arg = "eno1"; } + { type = "throughput_network_in"; arg = "eno1"; } + { type = "throughput_network_out"; arg = "eno1"; } + { type = "packets_in"; arg = "eno1"; } + { type = "packets_out"; arg = "eno1"; } + { type = "ipv4_address"; arg = "eno1"; } + { type = "ipv6_address"; arg = "eno1"; } + { type = "network_in"; arg = "ztmjfdwjkp"; } + { type = "network_out"; arg = "ztmjfdwjkp"; } + { type = "throughput_network_in"; arg = "ztmjfdwjkp"; } + { type = "throughput_network_out"; arg = "ztmjfdwjkp"; } + { type = "packets_in"; arg = "ztmjfdwjkp"; } + { type = "packets_out"; arg = "ztmjfdwjkp"; } + { type = "ipv4_address"; arg = "ztmjfdwjkp"; } + { type = "ipv6_address"; arg = "ztmjfdwjkp"; } + { type = "processor_use"; } + { type = "processor_temperature"; } + # { type = "process"; arg = "octave-cli"; } + { type = "last_boot"; } + ]; + }]; shopping_list = { }; sun = { }; system_health = { };