monitoring: monitor comin status

This commit is contained in:
xinyangli 2024-12-21 23:18:27 +08:00
parent 7017421f6a
commit 027c05755a
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
2 changed files with 21 additions and 1 deletions

View file

@ -12,6 +12,7 @@ let
hedgedocDomain
grafanaUrl
ntfyUrl
internalDomain
;
removeHttps = s: lib.removePrefix "https://" s;
in
@ -81,7 +82,24 @@ in
];
passwordFile = config.sops.secrets."prometheus/metrics_password".path;
in
(mkScrapes [
[
{
job_name = "comin";
scheme = "http";
static_config = [
{
targets = map (host: "${host}.${internalDomain}:4243") [
"weilite"
"thorite"
"la-00"
"hk-00"
"fra-00"
];
}
];
}
]
++ (mkScrapes [
{
name = "immich";
scheme = "http";

View file

@ -16,5 +16,7 @@
prometheusCollectors = [
"thorite.coho-tet.ts.net"
];
internalDomain = "coho-tet.ts.net";
};
}