From 60ee43b577fd241f28d5437d99bfb8901ab966d6 Mon Sep 17 00:00:00 2001 From: sinavir Date: Sun, 14 Apr 2024 01:09:28 +0200 Subject: [PATCH] feat(monitoring): Add uptime-kuma to prometheus targets --- machines/storage01/prometheus.nix | 9 +++++++++ .../secrets/prometheus-uptime-kuma-apikey | Bin 0 -> 1503 bytes machines/storage01/secrets/secrets.nix | 1 + 3 files changed, 10 insertions(+) create mode 100644 machines/storage01/secrets/prometheus-uptime-kuma-apikey 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 0000000000000000000000000000000000000000..d7ce3197102a63ad6cc1840062ccbde41033f293 GIT binary patch literal 1503 zcmZA1Im_$>6b4`|Y=WQ&YNykWpIIi8OhANeGubE0WReV6WZ(CFE?8U;M6j{7vyt12 zU}bA5sD(B*;xABJz0I}w{=j)S?^)b9d_ew$m%Gk>Nu?Y0R-N3F98f+2x$z)E#SXg_SyhbsAfn4At9N-jZ2^ z+{mgB=sl8qsyE8a*tmR&bXFGy+G9;Cbc)b6*F59&(k~}*Tz8|i6Ft~9(?&a*yS)h` zf$JS%t7)B5=Eee zb3PtSLs#e>ee&YO?q6tK?{4zWq9qNu8VeQ}xQu0B)0?>wvod;c908e&yQLQ_o{3G&<%;SWX#JH3nEWJ77dzl54O8ipnby9GDWJeaZ5MfC2bwe3_w zDu<}$$CYNQVeD=tr2&&G$?iaiJeA3b)po5$Pcl@gv;eA=9?@2vdZEmn;mNrSEMlMM zGs8@{(Nf;(UWz>+vCpeJJ~LKMZ-h`c$iqG%U!?tFZ^3ESd~LH0_ju)0!?higRV^vB zpl1fsWlg(;8pdP;9a!$&L8Vj%I_AhVI(;J7yUnJ}Qh91P(k@g~cvA|DpATxvXZ>Dn z{-5m&4blnx`IRh%aY*%+gDPkV@VIpFMWH~+M5r3iwA7wyUy%G#jWh;SMkc(!Ut?=AwtjOEbhcv>5Ve)jdEA?DT5u)a+{&FQwOJfU1EnsGGSxch(|B-{ zY6vb{A}W`huZGgheE^n|NC4?7O1Mrg==Nad3u@lHdQ8Oef?Wc4n}v#D-%9qewl^GH zj5o_QhXOCIpiUPTfs&@tgv)BFyOp@N@Kyq$hE&a&jU^?QC;ST{IS-6a*S%5L$kPDmm>y5cBk7O3NtB{?jTuc7MtEydl`y& zu9MkhAs|ip1Y3|i_Rxb~ChJ~voa!KJ`_*z`DdhJVCFFCZ3%&VR>$rNj%$sb?BhZ*u zH{o;&1MOP8LJ@gpmpPPlQRc?QWp8wHn6n<(kvunY+*l*EpI0{w(S|#B&M)LOvzXPw zH3mMBgbFh1^Y8ZXuo*aJWRw(dp(}KE=v_h;p6a3s6lLPBTJ$KspQ-@pI-^1tuA@j?E%`bY5}>W=Z9 literal 0 HcmV?d00001 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" ]