summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/prometheus/node.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-06-20 22:21:56 +0200
committermakefu <github@syntax-fehler.de>2019-06-20 22:25:46 +0200
commit8225afec5b2e853d2e4eeae27adc5a39efcdae17 (patch)
tree2848442306c650c351808211ac1c2d380d18e4ba /krebs/2configs/shack/prometheus/node.nix
parent75f8b34296a237f350c47147e3a4cb313862e7f5 (diff)
wolf.r: init shack/prometheus config
Diffstat (limited to 'krebs/2configs/shack/prometheus/node.nix')
-rw-r--r--krebs/2configs/shack/prometheus/node.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/krebs/2configs/shack/prometheus/node.nix b/krebs/2configs/shack/prometheus/node.nix
new file mode 100644
index 000000000..5462464d5
--- /dev/null
+++ b/krebs/2configs/shack/prometheus/node.nix
@@ -0,0 +1,27 @@
+{ config, lib, pkgs, ... }:
+{
+ networking.firewall.allowedTCPPorts = [ 9100 ];
+
+ services.prometheus.exporters.node = {
+ enable = true;
+ enabledCollectors = [
+ "conntrack"
+ "diskstats"
+ "entropy"
+ "filefd"
+ "filesystem"
+ "loadavg"
+ "mdadm"
+ "meminfo"
+ "netdev"
+ "netstat"
+ "stat"
+ "time"
+ "vmstat"
+ "systemd"
+ "logind"
+ "interrupts"
+ "ksmd"
+ ];
+ };
+}