move alertmanager, prometheus under monitoring.nix-community.org

This commit is contained in:
zowoq 2023-09-03 13:31:00 +10:00
parent 54b2ff99dc
commit 2e480a6b62
4 changed files with 14 additions and 32 deletions
modules/nixos/monitoring

View file

@ -15,7 +15,7 @@
];
}))
];
webExternalUrl = "https://prometheus.nix-community.org";
webExternalUrl = "https://monitoring.nix-community.org/prometheus/";
scrapeConfigs = [
{
job_name = "telegraf";
@ -49,15 +49,9 @@
"http://localhost:9093/metrics" # alertmanager
];
services.nginx.virtualHosts."prometheus.nix-community.org" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:9090";
};
services.prometheus.alertmanager = {
enable = true;
webExternalUrl = "https://alertmanager.nix-community.org";
webExternalUrl = "https://monitoring.nix-community.org/alertmanager/";
listenAddress = "[::1]";
extraFlags = [ "--cluster.listen-address=''" ];
configuration = {
@ -89,10 +83,4 @@
];
};
};
services.nginx.virtualHosts."alertmanager.nix-community.org" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:9093";
};
}