cluster/services/monitoring: adjust Jitsi monitoring
This commit is contained in:
parent
32db0fd1d4
commit
8a7f929cc7
1 changed files with 5 additions and 3 deletions
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue