cluster/services/monitoring: remove Jitsi monitoring
This commit is contained in:
parent
1945265362
commit
c4d2a13912
2 changed files with 1 additions and 22 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ cluster, config, lib, ... }:
|
{ cluster, lib, ... }:
|
||||||
let
|
let
|
||||||
myNode = cluster.config.vars.mesh.${cluster.config.vars.hostName};
|
myNode = cluster.config.vars.mesh.${cluster.config.vars.hostName};
|
||||||
|
|
||||||
|
@ -6,8 +6,6 @@ let
|
||||||
source_labels = [ from ];
|
source_labels = [ from ];
|
||||||
target_label = to;
|
target_label = to;
|
||||||
};
|
};
|
||||||
|
|
||||||
hasJitsi = lib.mkIf config.services.jitsi-meet.enable;
|
|
||||||
in {
|
in {
|
||||||
services.journald.extraConfig = "Storage=volatile";
|
services.journald.extraConfig = "Storage=volatile";
|
||||||
|
|
||||||
|
@ -19,22 +17,12 @@ in {
|
||||||
"systemd"
|
"systemd"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
jitsi = hasJitsi {
|
|
||||||
enable = true;
|
|
||||||
listenAddress = myNode.meshIp;
|
|
||||||
interval = "60s";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.prometheus-node-exporter = {
|
systemd.services.prometheus-node-exporter = {
|
||||||
after = [ "wireguard-wgmesh.service" ];
|
after = [ "wireguard-wgmesh.service" ];
|
||||||
serviceConfig.RestartSec = "10s";
|
serviceConfig.RestartSec = "10s";
|
||||||
};
|
};
|
||||||
systemd.services.prometheus-jitsi-exporter = hasJitsi {
|
|
||||||
after = [ "wireguard-wgmesh.service" ];
|
|
||||||
serviceConfig.RestartSec = "10s";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.grafana-agent = {
|
services.grafana-agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -103,15 +103,6 @@ in
|
||||||
targets = [ "${host.meshIp}:9100" ];
|
targets = [ "${host.meshIp}:9100" ];
|
||||||
labels.instance = name;
|
labels.instance = name;
|
||||||
});
|
});
|
||||||
}
|
|
||||||
{
|
|
||||||
job_name = "jitsi";
|
|
||||||
static_configs = [
|
|
||||||
{
|
|
||||||
targets = [ "${cluster.config.vars.mesh.prophet.meshIp}:9700" ];
|
|
||||||
labels.instance = "meet.${domain}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "ipfs";
|
job_name = "ipfs";
|
||||||
|
|
Loading…
Reference in a new issue