diff --git a/machines/storage01/prometheus.nix b/machines/storage01/prometheus.nix index 5868685..483d131 100644 --- a/machines/storage01/prometheus.nix +++ b/machines/storage01/prometheus.nix @@ -55,6 +55,15 @@ in job_name = "node_exporter"; 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; + }; + } ]; }; diff --git a/machines/storage01/secrets/prometheus-uptime-kuma-apikey b/machines/storage01/secrets/prometheus-uptime-kuma-apikey new file mode 100644 index 0000000..d7ce319 Binary files /dev/null and b/machines/storage01/secrets/prometheus-uptime-kuma-apikey differ diff --git a/machines/storage01/secrets/secrets.nix b/machines/storage01/secrets/secrets.nix index 50b743a..852b7ec 100644 --- a/machines/storage01/secrets/secrets.nix +++ b/machines/storage01/secrets/secrets.nix @@ -17,4 +17,5 @@ lib.setDefault { inherit publicKeys; } [ "peertube-service_environment_file" "peertube-smtp_password_file" "prometheus-web_config_file" + "prometheus-uptime-kuma-apikey" ]