📊 prometheus setup

This commit is contained in:
2021-05-10 21:42:30 -04:00
parent 6fda2af072
commit 4fb6c04299
4 changed files with 60 additions and 4 deletions

View File

@ -32,7 +32,23 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ0mE4MyMnfd1b2nlBJT7kpZ6Vov+ILuGNfzdp5ZBNQe walkah@walkah.net"
];
services.tailscale.enable = true;
environment.systemPackages = with pkgs; [ libraspberrypi ];
services = {
prometheus = {
enable = true;
port = 9090;
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
openFirewall = true;
port = 9100;
};
};
};
tailscale = { enable = true; };
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions