add healthchecks client

This commit is contained in:
Alex Tau 2025-08-15 02:56:27 +03:00
parent c01ab8303c
commit d59d5ac4e2
11 changed files with 630 additions and 5 deletions

View file

@ -39,6 +39,7 @@ package:
} else null;
healthchecks = with cfg.alertChannels.healthchecks; if enable then {
pinging_keys_secret_path = pingingKeysSecretPath;
pinging_api_endpoint = pingingApiEndpoint;
} else null;
};
checks = {

View file

@ -66,6 +66,12 @@ in
};
healthchecks = {
enable = lib.mkEnableOption "[Healthchecks](https://healthchecks.io) notification channel";
pingingApiEndpoint = lib.mkOption {
type = lib.types.str;
default = "https://hc-ping.com/";
description = "Endpoint URL for Healthchecks pinging API.";
example = "https://your-healthchecks-instance.com/ping/";
};
pingingKeysSecretPath = lib.mkOption {
type = lib.types.str;
default = "";