Disable unused monitoring collectors
This commit is contained in:
parent
ef9f204237
commit
add2bee896
|
@ -53,38 +53,20 @@ with pkgs;
|
|||
enabledCollectors = [ "systemd" ];
|
||||
port = 9002;
|
||||
};
|
||||
zfs.enable = true;
|
||||
wireguard.enable = true;
|
||||
postgres.enable = true;
|
||||
smartctl.enable = true;
|
||||
dnsmasq.enable = true;
|
||||
nginx = {
|
||||
enable = true;
|
||||
scrapeUri = "http://localhost:8282/nginx_status";
|
||||
};
|
||||
};
|
||||
scrapeConfigs = [{
|
||||
job_name = "zion";
|
||||
static_configs = [{
|
||||
targets = [
|
||||
"localhost:${toString config.services.prometheus.exporters.node.port}"
|
||||
"localhost:${toString config.services.prometheus.exporters.zfs.port}"
|
||||
"localhost:${
|
||||
toString config.services.prometheus.exporters.wireguard.port
|
||||
}"
|
||||
"localhost:${
|
||||
toString config.services.prometheus.exporters.postgres.port
|
||||
}"
|
||||
"localhost:${
|
||||
toString config.services.prometheus.exporters.smartctl.port
|
||||
}"
|
||||
"localhost:${
|
||||
toString config.services.prometheus.exporters.dnsmasq.port
|
||||
}"
|
||||
"localhost:${
|
||||
toString config.services.prometheus.exporters.nginx.port
|
||||
}"
|
||||
"localhost:9641"
|
||||
];
|
||||
}];
|
||||
}];
|
||||
|
|
|
@ -159,18 +159,6 @@
|
|||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
"/nginx_status/" = {
|
||||
listen = [{
|
||||
addr = "127.0.0.1";
|
||||
port = 8282;
|
||||
}];
|
||||
extraConfig = ''
|
||||
stub_status on;
|
||||
access_log off;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
'';
|
||||
};
|
||||
"nightscout.coolneng.duckdns.org" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Reference in New Issue