monitoring

This commit is contained in:
41666 2024-02-11 01:47:16 -05:00
parent 3d36fe8193
commit b6bfe1b64c

View file

@ -2,10 +2,11 @@
services.prometheus.exporters.nginx = {
enable = true;
port = 14201;
scrapeUri = "http://localhost/nginx_status";
scrapeUri = "http://localhost:14000/nginx_status";
};
networking.firewall.allowedTCPPorts = [ 14201 ];
services.nginx.statusPage = true;
services.nginx.virtualHosts.localhost.listen = [ { port = 14000; } ];
}