-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(monitoring): add monitoring configuration for prometheus exporte…
…rs and system packages Add configuration for prometheus exporters (node, zfs, smartctl, ipmi) and system packages (ipmitool, lm_sensors) in the monitoring setup. feat(samba): update allowed hosts in samba configuration Update the allowed hosts in the samba configuration to include the IP range 100.64. feat(zfs): enable ZFS trim in ZFS configuration Enable ZFS trim functionality in the ZFS configuration to improve performance. feat(nas): include monitoring configuration and additional ZFS pools Include the monitoring configuration in the NAS setup and add extra ZFS pools named "tank-test" and "ssdtank-test". fix(hardware): remove unnecessary blacklist entry in kernelParams Remove unnecessary blacklist entry for i915 in the hardware configuration.
- Loading branch information
Showing
5 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: { | ||
environment.systemPackages = with pkgs; [ | ||
ipmitool | ||
lm_sensors | ||
]; | ||
networking.firewall.allowedTCPPorts = [ | ||
config.services.prometheus.exporters.node.port | ||
config.services.prometheus.exporters.zfs.port | ||
config.services.prometheus.exporters.smartctl.port | ||
config.services.prometheus.exporters.ipmi.port | ||
]; | ||
services.prometheus = { | ||
exporters = { | ||
node = { | ||
enable = true; | ||
enabledCollectors = ["systemd"]; | ||
disabledCollectors = ["textfile"]; | ||
port = 9001; | ||
}; | ||
zfs = { | ||
enable = true; | ||
port = 9002; | ||
}; | ||
smartctl = { | ||
enable = true; | ||
port = 9003; | ||
}; | ||
ipmi = { | ||
enable = true; | ||
port = 9004; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters