cluster/services/monitoring: adjust Jitsi monitoring

This commit is contained in:
Max Headroom 2022-08-04 13:53:32 +02:00
parent 32db0fd1d4
commit 8a7f929cc7

View file

@ -8,6 +8,8 @@ let
source_labels = [ from ];
target_label = to;
};
hasJitsi = lib.mkIf config.services.jitsi-meet.enable;
in {
services.journald.extraConfig = "Storage=volatile";
@ -17,8 +19,8 @@ in {
listenAddress = myNode.meshIp;
};
jitsi = {
enable = config.services.jitsi-meet.enable;
jitsi = hasJitsi {
enable = true;
listenAddress = myNode.meshIp;
interval = "60s";
};
@ -28,7 +30,7 @@ in {
after = [ "wireguard-wgmesh.service" ];
serviceConfig.RestartSec = "10s";
};
systemd.services.prometheus-jitsi-exporter = {
systemd.services.prometheus-jitsi-exporter = hasJitsi {
after = [ "wireguard-wgmesh.service" ];
serviceConfig.RestartSec = "10s";
};