thorite/monitoring: alert comin build failure

This commit is contained in:
xinyangli 2024-12-22 00:00:51 +08:00
parent a659c3b397
commit f4fe93ae22
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE

View file

@ -59,7 +59,22 @@ in
node.enable = true;
};
ruleModules =
(mkCaddyRules [ { host = "thorite"; } ])
[
{
name = "comin_rules";
rules = [
{
alert = "CominBuildFailed";
expr = "comin_build_info != 1";
for = "1m";
labels = {
severity = "critical";
};
}
];
}
]
++ (mkCaddyRules [ { host = "thorite"; } ])
++ (mkNodeRules [ { host = "thorite"; } ])
++ (mkBlackboxRules [ { host = "thorite"; } ]);
};