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