1
0

Add bird to monitoring

This commit is contained in:
2022-03-22 12:16:28 +01:00
parent 3ff361db44
commit 588db80877
9 changed files with 29 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ in
type = types.str;
description = "Public Key of the monitoring wireguard interface of this host";
};
bird = mkEnableOption "Monitor bird";
};
};
@@ -47,5 +48,11 @@ in
openFirewall = true;
firewallFilter = "-i wg-monitoring -p tcp -m tcp --dport 9100";
};
services.prometheus.exporters.bird = mkIf cfg.bird {
enable = true;
openFirewall = true;
firewallFilter = "-i wg-monitoring -p tcp -m tcp --dport 9324";
};
};
}