mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 12:45:19 +00:00
prepare config for healthchecks integration
This commit is contained in:
parent
4558cf9e6f
commit
c01ab8303c
8 changed files with 89 additions and 34 deletions
|
|
@ -31,9 +31,15 @@ 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;
|
||||
alert_channels = {
|
||||
telegram = with cfg.alertChannels.telegram; if enable then
|
||||
{
|
||||
creds_secret_path = credsSecretPath;
|
||||
room_id = roomId;
|
||||
} else null;
|
||||
healthchecks = with cfg.alertChannels.healthchecks; if enable then {
|
||||
pinging_keys_secret_path = pingingKeysSecretPath;
|
||||
} else null;
|
||||
};
|
||||
checks = {
|
||||
temp.sensors = lib.mapAttrs (_: sensorCfg: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue