Add prometheus #118
1 changed files with 3 additions and 0 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue