modules/prometheus: add basic auth

This commit is contained in:
xinyangli 2024-11-30 17:35:46 +08:00
parent 97fcdefc2b
commit 74b67e1854
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
10 changed files with 184 additions and 194 deletions

View file

@ -30,7 +30,6 @@
commonSettings = {
auth.enable = true;
autoupgrade.enable = true;
};
nixpkgs.system = "x86_64-linux";

View file

@ -41,6 +41,7 @@ with my-lib;
"45.142.178.32:22"
"home.xinyang.life:8000"
];
passwordFile = config.sops.secrets."prometheus/metrics_password".path;
in
(mkScrapes [
{
@ -50,18 +51,22 @@ with my-lib;
port = 8082;
}
{
inherit passwordFile;
name = "gotosocial";
address = "xinyang.life";
}
{
inherit passwordFile;
name = "miniflux";
address = "rss.xinyang.life";
}
{
inherit passwordFile;
name = "ntfy";
address = "ntfy.xinyang.life";
}
{
inherit passwordFile;
name = "grafana-eu";
address = "grafana.xinyang.life";
}