mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
ram check, configurable loglevel
This commit is contained in:
parent
5095057a13
commit
da85a566c4
10 changed files with 180 additions and 18 deletions
|
|
@ -30,6 +30,7 @@ package:
|
|||
|
||||
serviceConfigFile = json.generate "config.json" {
|
||||
enabled_check_sets = cfg.enabledCheckSets;
|
||||
log_level = cfg.logLevel;
|
||||
telegram = with cfg.telegram; {
|
||||
creds_secret_path = credsSecretPath;
|
||||
room_id = roomId;
|
||||
|
|
@ -54,6 +55,11 @@ package:
|
|||
warning_percentage = warningPercentage;
|
||||
critical_percentage = criticalPercentage;
|
||||
};
|
||||
|
||||
ram = with cfg.checks.ram; {
|
||||
warning_percentage = warningPercentage;
|
||||
critical_percentage = criticalPercentage;
|
||||
};
|
||||
};
|
||||
};
|
||||
in lib.mkIf cfg.enable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue