mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
add cpu check
This commit is contained in:
parent
8709b019ea
commit
5095057a13
12 changed files with 123 additions and 21 deletions
|
|
@ -16,6 +16,7 @@ in
|
|||
"start"
|
||||
"stop"
|
||||
"temp"
|
||||
"cpu"
|
||||
"vulnix"
|
||||
]);
|
||||
default = [ ];
|
||||
|
|
@ -76,6 +77,19 @@ in
|
|||
}'';
|
||||
};
|
||||
};
|
||||
|
||||
cpu = {
|
||||
warningPercentage = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.float;
|
||||
default = 80.0;
|
||||
description = "CPU load percentage for a warning alert is sent. Null means never generate a CPU warning alert.";
|
||||
};
|
||||
criticalPercentage = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.float;
|
||||
default = 90.0;
|
||||
description = "CPU load percentage for a critical alert to be sent. Null means never generate a CPU critical alert.";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue