monitoring
This commit is contained in:
parent
3d36fe8193
commit
b6bfe1b64c
1 changed files with 2 additions and 1 deletions
|
@ -2,10 +2,11 @@
|
||||||
services.prometheus.exporters.nginx = {
|
services.prometheus.exporters.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 14201;
|
port = 14201;
|
||||||
scrapeUri = "http://localhost/nginx_status";
|
scrapeUri = "http://localhost:14000/nginx_status";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 14201 ];
|
networking.firewall.allowedTCPPorts = [ 14201 ];
|
||||||
|
|
||||||
services.nginx.statusPage = true;
|
services.nginx.statusPage = true;
|
||||||
|
services.nginx.virtualHosts.localhost.listen = [ { port = 14000; } ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue