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,14 +3,8 @@
|
||||||
serverSystemConfiguration {
|
serverSystemConfiguration {
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
services.prometheus.exporters = {
|
services.prometheus.exporters.nginx = enabled {
|
||||||
nginxlog = enabled {
|
port = 9010;
|
||||||
port = 9011;
|
|
||||||
};
|
|
||||||
|
|
||||||
nginx = enabled {
|
|
||||||
port = 9010;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.prometheus.scrapeConfigs = [{
|
services.prometheus.scrapeConfigs = [{
|
||||||
|
@ -18,10 +12,7 @@ serverSystemConfiguration {
|
||||||
|
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
labels.job = "nginx";
|
labels.job = "nginx";
|
||||||
targets = [
|
targets = [ "[::]:${toString config.services.prometheus.exporters.nginx.port}" ];
|
||||||
"[::]:${toString config.services.prometheus.exporters.nginxlog.port}"
|
|
||||||
"[::]:${toString config.services.prometheus.exporters.nginx.port}"
|
|
||||||
];
|
|
||||||
}];
|
}];
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue