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

@ -4,4 +4,12 @@
./prometheus.nix
./telegraf.nix
];
services.nginx.virtualHosts."monitoring.nix-community.org" = {
enableACME = true;
forceSSL = true;
locations."/".return = "302 https://nix-community.org/monitoring";
locations."/alertmanager/".proxyPass = "http://localhost:9093";
locations."/prometheus/".proxyPass = "http://localhost:9090";
};
}