mirror of
https://github.com/SebastianWendel/srx-platform-nix.git
synced 2024-09-20 04:19:01 +02:00
34 lines
778 B
Nix
34 lines
778 B
Nix
{ pkgs, lib, config, ... }:
|
|
{
|
|
services.prometheus.exporters = {
|
|
systemd.enable = true;
|
|
smartctl.enable = lib.mkIf config.services.smartd.enable true;
|
|
node = {
|
|
enable = true;
|
|
enabledCollectors = [
|
|
"systemd"
|
|
"processes"
|
|
"cgroups"
|
|
];
|
|
};
|
|
blackbox = {
|
|
enable = true;
|
|
configFile = pkgs.writeText "blackbox-exporter.yaml" (
|
|
builtins.toJSON {
|
|
modules.ssh_banner = {
|
|
prober = "tcp";
|
|
timeout = "10s";
|
|
tcp = {
|
|
preferred_ip_protocol = "ip4";
|
|
query_response = [{
|
|
expect = "^SSH-2.0-";
|
|
send = "SSH-2.0-blackbox-ssh-check";
|
|
}];
|
|
};
|
|
};
|
|
}
|
|
);
|
|
};
|
|
};
|
|
}
|