feat(monitoring): Add uptime-kuma to prometheus targets
All checks were successful
build configuration / build_storage01 (push) Successful in 1m8s
build configuration / build_compute01 (push) Successful in 1m11s
build configuration / build_vault01 (push) Successful in 1m0s
build configuration / build_web01 (push) Successful in 1m26s
build configuration / build_web02 (push) Successful in 49s
lint / check (push) Successful in 22s
build configuration / build_rescue01 (push) Successful in 52s
build configuration / push_to_cache (push) Successful in 2m13s

This commit is contained in:
sinavir 2024-04-14 01:09:28 +02:00
parent c6fe6b5891
commit 60ee43b577
3 changed files with 10 additions and 0 deletions

View file

@ -55,6 +55,15 @@ in
job_name = "node_exporter"; job_name = "node_exporter";
static_configs = nodeExporterConfigs; static_configs = nodeExporterConfigs;
} }
{
job_name = "uptime_kuma";
scheme = "https";
static_configs = [ { targets = [ "status.dgnum.eu" ]; } ];
basic_auth = {
username = "prometheus";
password_file = config.age.secrets."prometheus-uptime-kuma-apikey".path;
};
}
]; ];
}; };

View file

@ -17,4 +17,5 @@ lib.setDefault { inherit publicKeys; } [
"peertube-service_environment_file" "peertube-service_environment_file"
"peertube-smtp_password_file" "peertube-smtp_password_file"
"prometheus-web_config_file" "prometheus-web_config_file"
"prometheus-uptime-kuma-apikey"
] ]