Add prometheus #118

Merged
esy merged 27 commits from prometheus2 into main 2024-05-23 21:52:10 +00:00
Showing only changes of commit f7dd90e92b - Show all commits

View file

@ -51,6 +51,9 @@ in {
enabledCollectors = ["systemd"]; enabledCollectors = ["systemd"];
port = cfg.port_collecter; port = cfg.port_collecter;
}; };
# make sure the port is open
networking.firewall.allowedTCPPorts = [cfg.port_collecter];
} }
(mkIf cfg.server.enable { (mkIf cfg.server.enable {
services.prometheus = { services.prometheus = {