fix: needed to open teh ports to be able to get the data
This commit is contained in:
parent
147bd86ad5
commit
f7dd90e92b
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