prometheus: basic metric export

This commit is contained in:
Vinzenz Schroeter 2025-12-08 20:48:52 +01:00
parent 18b97a9285
commit d55f7dc490
2 changed files with 21 additions and 0 deletions

View file

@ -277,6 +277,7 @@
self.nixosModules.globalinstalls
self.nixosModules.lix-is-nix
self.nixosModules.openssh
self.nixosModules.prometheus-node
self.nixosModules.systemd-boot
self.nixosModules.tailscale
zerforschen-plus.nixosModules.default

View file

@ -0,0 +1,20 @@
{
services.prometheus.exporters = {
node = {
enable = true;
openFirewall = true;
port = 9190;
enabledCollectors = [
# keep-sorted start
"cgroups"
"interrupts"
"softirqs"
"swap"
"systemd"
"tcpstat"
"wifi"
# keep-sorted end
];
};
};
}