modules/prometheus: add basic auth
This commit is contained in:
parent
97fcdefc2b
commit
74b67e1854
10 changed files with 184 additions and 194 deletions
|
@ -30,7 +30,6 @@
|
|||
|
||||
commonSettings = {
|
||||
auth.enable = true;
|
||||
autoupgrade.enable = true;
|
||||
};
|
||||
|
||||
nixpkgs.system = "x86_64-linux";
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue