mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Remove nginxlog exporter
This commit is contained in:
parent
d171c70029
commit
e96561b036
1 changed files with 3 additions and 12 deletions
|
@ -3,25 +3,16 @@
|
|||
serverSystemConfiguration {
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
|
||||
services.prometheus.exporters = {
|
||||
nginxlog = enabled {
|
||||
port = 9011;
|
||||
};
|
||||
|
||||
nginx = enabled {
|
||||
services.prometheus.exporters.nginx = enabled {
|
||||
port = 9010;
|
||||
};
|
||||
};
|
||||
|
||||
services.prometheus.scrapeConfigs = [{
|
||||
job_name = "nginx";
|
||||
|
||||
static_configs = [{
|
||||
labels.job = "nginx";
|
||||
targets = [
|
||||
"[::]:${toString config.services.prometheus.exporters.nginxlog.port}"
|
||||
"[::]:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
];
|
||||
targets = [ "[::]:${toString config.services.prometheus.exporters.nginx.port}" ];
|
||||
}];
|
||||
}];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue