rp3b: add node_exporter

This commit is contained in:
Motiejus Jakštys 2023-08-16 16:54:17 +03:00
parent 8626cb4bd1
commit 3f4399017c
2 changed files with 20 additions and 6 deletions

View File

@ -205,6 +205,10 @@
job_name = "hel1-a.servers.jakst"; job_name = "hel1-a.servers.jakst";
static_configs = [{targets = ["${myData.hosts."hel1-a.servers.jakst".jakstIP}:${port}"];}]; 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}"];}];
}
]; ];
}; };

View File

@ -44,11 +44,27 @@
enable = true; enable = true;
saslPasswdPath = config.age.secrets.sasl-passwd.path; 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.tailscale.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
networking = { networking = {
hostId = "4bd17751"; hostId = "4bd17751";
hostName = "vno1-rp3b"; hostName = "vno1-rp3b";
@ -85,10 +101,4 @@
nixpkgs.hostPlatform = "aarch64-linux"; nixpkgs.hostPlatform = "aarch64-linux";
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
} }