Monitor nginx via Prometheus
This commit is contained in:
@@ -56,8 +56,11 @@ with pkgs;
|
||||
wireguard.enable = true;
|
||||
postgres.enable = true;
|
||||
smartctl.enable = true;
|
||||
#nginx.enable = true;
|
||||
dnsmasq.enable = true;
|
||||
nginx = {
|
||||
enable = true;
|
||||
scrapeUri = "http://localhost:8282/nginx_status";
|
||||
};
|
||||
};
|
||||
scrapeConfigs = [{
|
||||
job_name = "zion";
|
||||
@@ -77,6 +80,9 @@ with pkgs;
|
||||
"localhost:${
|
||||
toString config.services.prometheus.exporters.dnsmasq.port
|
||||
}"
|
||||
"localhost:${
|
||||
toString config.services.prometheus.exporters.nginx.port
|
||||
}"
|
||||
"localhost:9641"
|
||||
];
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user