Home assistant: system monitor

This commit is contained in:
Filippo Berto 2023-06-18 19:58:22 +02:00
parent b8fd070316
commit 0061f2b45f
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -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 = { };