Compare commits

...

2 commits

Author SHA1 Message Date
1d21825c7b
modules: init prometheus 2023-06-19 12:47:07 -04:00
afd1c72cdb
hosts: consolidate prometheus 2023-06-19 12:47:01 -04:00
10 changed files with 6 additions and 75 deletions

View file

@ -2,6 +2,5 @@ _: {
imports = [
./postgresql.nix
./redis.nix
./prometheus.nix
];
}

View file

@ -2,7 +2,6 @@ _: {
imports = [
./traefik.nix
./torrent.nix
./prometheus.nix
];
services.radarr = {
enable = true;

View file

@ -1,24 +0,0 @@
_: {
networking.firewall.allowedTCPPorts = [9090];
services.prometheus = {
enable = true;
scrapeConfigs = [
{
job_name = "prometheus";
scrape_interval = "30s";
static_configs = [{targets = ["localhost:9090"];}];
}
{
job_name = "node";
scrape_interval = "30s";
static_configs = [{targets = ["localhost:9100"];}];
}
];
exporters = {
node = {
enable = true;
enabledCollectors = ["systemd" "cpu"];
};
};
};
}

View file

@ -10,6 +10,5 @@
./hedgedoc.nix
./dashdot.nix
./grafana.nix
./prometheus.nix
];
}

View file

@ -31,6 +31,11 @@
USER = "forgejo";
PASSWD = "forgejo";
};
metrics = {
ENABLED = true;
ENABLED_ISSUE_BY_REPOSITORY = true;
ENABLED_ISSUE_BY_LABEL = true;
};
};
};
}

View file

@ -1,23 +0,0 @@
_: {
services.prometheus = {
enable = true;
scrapeConfigs = [
{
job_name = "prometheus";
scrape_interval = "30s";
static_configs = [{targets = ["localhost:9090"];}];
}
{
job_name = "node";
scrape_interval = "30s";
static_configs = [{targets = ["localhost:9100"];}];
}
];
exporters = {
node = {
enable = true;
enabledCollectors = ["systemd" "cpu"];
};
};
};
}

View file

@ -8,6 +8,5 @@
./homarr.nix
./dashdot.nix
./miniflux.nix
./prometheus.nix
];
}

View file

@ -1,24 +0,0 @@
_: {
networking.firewall.allowedTCPPorts = [9090];
services.prometheus = {
enable = true;
scrapeConfigs = [
{
job_name = "prometheus";
scrape_interval = "30s";
static_configs = [{targets = ["localhost:9090"];}];
}
{
job_name = "node";
scrape_interval = "30s";
static_configs = [{targets = ["localhost:9100"];}];
}
];
exporters = {
node = {
enable = true;
enabledCollectors = ["systemd" "cpu"];
};
};
};
}

View file

@ -8,5 +8,6 @@
./openssh.nix
./virtualisation.nix
./sops.nix
./prometheus.nix
];
}