infra/modules/nixos/monitoring/default.nix

21 lines
536 B
Nix
Raw Normal View History

2023-07-21 20:18:58 +10:00
{
imports = [
2023-08-13 09:08:18 +10:00
./grafana.nix
./matrix-hook.nix
2023-07-21 20:18:58 +10:00
./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/";
2023-08-13 09:08:18 +10:00
locations."/grafana/" = {
proxyPass = "http://localhost:3000/";
proxyWebsockets = true;
};
locations."/prometheus/".proxyPass = "http://localhost:9090/";
};
2023-07-21 20:18:58 +10:00
}