modules/monitoring: init and add to server group

This commit is contained in:
Max Headroom 2022-05-15 00:34:45 +02:00
parent 7c72acee59
commit af127f70bf
2 changed files with 20 additions and 0 deletions

View file

@ -11,6 +11,7 @@ let
hyprspace = import ./hyprspace;
ipfs = import ./ipfs;
maintenance = import ./maintenance;
monitoring = import ./monitoring;
nix-builder = import ./nix-builder;
nix-config = import ./nix-config;
nix-config-server = import ./nix-config/server.nix;
@ -38,6 +39,7 @@ in rec {
server = [
deploy-rs-receiver
fail2ban
monitoring
nix-config-server
system-recovery
] ++ base ++ networking;

View file

@ -0,0 +1,18 @@
{ config, hosts, ... }:
let
myNode = hosts.${config.networking.hostName};
in
{
services.prometheus.exporters = {
node = {
enable = true;
listenAddress = myNode.hypr.addr;
};
jitsi = {
enable = config.services.jitsi-meet.enable;
listenAddress = myNode.hypr.addr;
interval = "60s";
};
};
}