modules/monitoring: init and add to server group
This commit is contained in:
parent
7c72acee59
commit
af127f70bf
2 changed files with 20 additions and 0 deletions
|
@ -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;
|
||||
|
|
18
modules/monitoring/default.nix
Normal file
18
modules/monitoring/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue