added exporters and trying to use mergeset

This commit is contained in:
ari committed 2024-07-18 09:28:51 -04:00
1 parent dcad5a72eb
commit 548b09877c
3 files changed
+19 -10

No files matched your search

+3 -1
View File
@@ -6,6 +6,7 @@
, enableSSH ? true
, containerRuntime ? null
, hardware ? { enable = false; }
, enablePrometheusExporters ? false
}:
{ pkgs, ... }: {
imports = [
@@ -34,5 +35,6 @@
})
]
else
[ ]);
[ ])
++ (if enablePrometheusExporters then [ ./exporters.nix ] else [ ]);
}
+11
View File
@@ -0,0 +1,11 @@
{ ... }: {
services.prometheus.exporters = {
node = {
enable = true;
enabledCollectors = [ "process" "systemd" ];
openFirewall = true;
};
# systemd.enable = true;
# process.enable = true;
};
}