monitoring: monitor comin status
This commit is contained in:
parent
7017421f6a
commit
a659c3b397
2 changed files with 21 additions and 1 deletions
|
@ -12,6 +12,7 @@ let
|
||||||
hedgedocDomain
|
hedgedocDomain
|
||||||
grafanaUrl
|
grafanaUrl
|
||||||
ntfyUrl
|
ntfyUrl
|
||||||
|
internalDomain
|
||||||
;
|
;
|
||||||
removeHttps = s: lib.removePrefix "https://" s;
|
removeHttps = s: lib.removePrefix "https://" s;
|
||||||
in
|
in
|
||||||
|
@ -81,7 +82,24 @@ in
|
||||||
];
|
];
|
||||||
passwordFile = config.sops.secrets."prometheus/metrics_password".path;
|
passwordFile = config.sops.secrets."prometheus/metrics_password".path;
|
||||||
in
|
in
|
||||||
(mkScrapes [
|
[
|
||||||
|
{
|
||||||
|
job_name = "comin";
|
||||||
|
scheme = "http";
|
||||||
|
static_configs = [
|
||||||
|
{
|
||||||
|
targets = map (host: "${host}.${internalDomain}:4243") [
|
||||||
|
"weilite"
|
||||||
|
"thorite"
|
||||||
|
"la-00"
|
||||||
|
"hk-00"
|
||||||
|
"fra-00"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
|
++ (mkScrapes [
|
||||||
{
|
{
|
||||||
name = "immich";
|
name = "immich";
|
||||||
scheme = "http";
|
scheme = "http";
|
||||||
|
|
|
@ -16,5 +16,7 @@
|
||||||
prometheusCollectors = [
|
prometheusCollectors = [
|
||||||
"thorite.coho-tet.ts.net"
|
"thorite.coho-tet.ts.net"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
internalDomain = "coho-tet.ts.net";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue