2024-06-05 07:09:28 +00:00
|
|
|
{ lib, config, ... }:
|
|
|
|
|
|
|
|
let cfg = config.cherrykitten.prometheus.client;
|
|
|
|
|
|
|
|
in {
|
|
|
|
options.cherrykitten.prometheus.client = {
|
|
|
|
enable = lib.mkEnableOption "Prometheus client";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.prometheus.exporters = {
|
|
|
|
node = {
|
|
|
|
enable = true;
|
|
|
|
port = 9100;
|
2024-06-07 09:19:06 +00:00
|
|
|
enabledCollectors = [ "systemd" "processes" "cpu_vulnerabilities" "mountstats" "network_route" ];
|
2024-06-05 07:09:28 +00:00
|
|
|
openFirewall = true;
|
|
|
|
listenAddress = config.cherrykitten.network.internal_IPv4;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|