From 3f4399017cb97f325c977cb802d6b726dc657079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 16 Aug 2023 16:54:17 +0300 Subject: [PATCH] rp3b: add node_exporter --- hosts/vno1-oh2/configuration.nix | 4 ++++ hosts/vno1-rp3b/configuration.nix | 22 ++++++++++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix index 4015e3c..ada05b0 100644 --- a/hosts/vno1-oh2/configuration.nix +++ b/hosts/vno1-oh2/configuration.nix @@ -205,6 +205,10 @@ job_name = "hel1-a.servers.jakst"; static_configs = [{targets = ["${myData.hosts."hel1-a.servers.jakst".jakstIP}:${port}"];}]; } + { + job_name = "vno1-rp3b.servers.jakst"; + static_configs = [{targets = ["${myData.hosts."vno1-rp3b.servers.jakst".jakstIP}:${port}"];}]; + } ]; }; diff --git a/hosts/vno1-rp3b/configuration.nix b/hosts/vno1-rp3b/configuration.nix index 375d510..e4f97ab 100644 --- a/hosts/vno1-rp3b/configuration.nix +++ b/hosts/vno1-rp3b/configuration.nix @@ -44,11 +44,27 @@ enable = true; saslPasswdPath = config.age.secrets.sasl-passwd.path; }; + + friendlyport.vpn.ports = [ + myData.ports.exporters.node + ]; }; }; + services.prometheus.exporters.node = { + enable = true; + enabledCollectors = ["systemd" "processes"]; + port = myData.ports.exporters.node; + }; services.tailscale.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + }; + networking = { hostId = "4bd17751"; hostName = "vno1-rp3b"; @@ -85,10 +101,4 @@ nixpkgs.hostPlatform = "aarch64-linux"; security.rtkit.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - }; }