monitoring
This commit is contained in:
parent
c68bee3aca
commit
c3b03cb167
2 changed files with 7 additions and 4 deletions
|
@ -1,11 +1,13 @@
|
|||
{ ... }: {
|
||||
services.prometheus.exporters.nginx = {
|
||||
services.prometheus.exporters.nginxlog = {
|
||||
enable = true;
|
||||
port = 14201;
|
||||
scrapeUri = "http://localhost/nginx_status";
|
||||
settings = {
|
||||
namespace.nginx.source.files = "/var/log/nginx/access.log";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 14201 ];
|
||||
services.nginx.commonHttpConfig = "access_log /var/log/nginx/access.log";
|
||||
|
||||
services.nginx.statusPage = true;
|
||||
networking.firewall.allowedTCPPorts = [ 14201 ];
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ in {
|
|||
http3 = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
||||
};
|
||||
static = { src ? null, url ? null, rev ? null, aliases ? [] }: {
|
||||
serverAliases = aliases;
|
||||
|
|
Loading…
Add table
Reference in a new issue