This commit is contained in:
nora 2024-08-07 17:14:50 +02:00
parent d12f733cf7
commit 42bf7aba73
26 changed files with 59 additions and 23 deletions

View file

@ -39,4 +39,10 @@
'';
};
};
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 9433 ]; # metrics
services.prometheus.exporters.knot = {
enable = true;
port = 9433;
};
}

View file

@ -42,7 +42,6 @@ let
www = vps1;
# --- legacy crap
vps2 = vps2; # TODO REMOVE
old-docker = vps2;
# --- apps

View file

@ -1,7 +1,10 @@
{ config, pkgs, name, ... }: {
age.secrets.garage_secrets.file = ../../secrets/garage_secrets.age;
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 3901 ];
networking.firewall.interfaces.wg0.allowedTCPPorts = [
3901 # RPC
3903 # admin for metrics
];
services.garage = {
enable = true;

View file

@ -12,6 +12,8 @@
{
job_name = "node";
static_configs = [
{ targets = [ "dns1.local:9100" ]; }
{ targets = [ "dns2.local:9100" ]; }
{ targets = [ "vps1.local:9100" ]; }
{ targets = [ "vps3.local:9100" ]; }
{ targets = [ "vps4.local:9100" ]; }
@ -33,6 +35,22 @@
{ targets = [ "vps1.local:9011" ]; }
];
}
{
job_name = "garage";
static_configs = [
{ targets = [ "vps1.local:3903" ]; }
{ targets = [ "vps3.local:3903" ]; }
{ targets = [ "vps4.local:3903" ]; }
{ targets = [ "vps5.local:3903" ]; }
];
}
{
job_name = "knot";
static_configs = [
{ targets = [ "dns1.local:9433" ]; }
{ targets = [ "dns2.local:9433" ]; }
];
}
];
};