faf: enable prometheus

This commit is contained in:
Aaron Bieber 2022-09-02 18:46:43 -06:00
parent b56b62f5f5
commit 2f7df1d3c5
No known key found for this signature in database
2 changed files with 15 additions and 3 deletions

View File

@ -327,8 +327,8 @@ in {
static_configs = [{ targets = [ "10.6.0.22:8811" ]; }]; static_configs = [{ targets = [ "10.6.0.22:8811" ]; }];
} }
{ {
job_name = "tal"; job_name = "faf";
static_configs = [{ targets = [ "10.6.0.110:9100" ]; }]; static_configs = [{ targets = [ "10.6.0.245:9002" ]; }];
} }
{ {
job_name = "namish"; job_name = "namish";

View File

@ -24,13 +24,25 @@ in {
networking.interfaces.enp1s0.useDHCP = true; networking.interfaces.enp1s0.useDHCP = true;
networking.interfaces.enp2s0.useDHCP = true; networking.interfaces.enp2s0.useDHCP = true;
networking.firewall.allowedTCPPorts = [ 22 53 ]; networking.firewall.allowedTCPPorts = [ 22 53 9001 ];
networking.firewall.allowedUDPPorts = [ 53 ]; networking.firewall.allowedUDPPorts = [ 53 ];
users.users.root = userBase; users.users.root = userBase;
users.users.qbit = userBase; users.users.qbit = userBase;
services = { services = {
prometheus = {
enable = true;
port = 9001;
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
port = 9002;
};
};
};
adguardhome = { adguardhome = {
enable = false; enable = false;
port = 3000; port = 3000;