monitoring: contact points is now always needed it seems
This commit is contained in:
parent
cccafa9c56
commit
c7cf3cce13
2 changed files with 3 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ in
|
|||
(lib.mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = (!(isNull cfg.smtp)) -> builtins.length cfg.contactPoints > 0;
|
||||
assertion = builtins.length cfg.contactPoints > 0;
|
||||
message = "Must have at least one contact point for alerting";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ let
|
|||
enable = true;
|
||||
inherit (config.test) subdomain domain;
|
||||
|
||||
contactPoints = [ "me@example.com" ];
|
||||
|
||||
grafanaPort = 3000;
|
||||
adminPassword.result = config.shb.hardcodedsecret."admin_password".result;
|
||||
secretKey.result = config.shb.hardcodedsecret."secret_key".result;
|
||||
|
|
|
|||
Loading…
Reference in a new issue