Compare commits

..

No commits in common. "1d21825c7b0f6b922d31cb10b5ad8a1036a8ffe2" and "0853fb537e40d0380530eb2b4d21460f0bed3394" have entirely different histories.

10 changed files with 75 additions and 6 deletions

View file

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

View file

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

View file

@ -0,0 +1,24 @@
_: {
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,5 +10,6 @@
./hedgedoc.nix ./hedgedoc.nix
./dashdot.nix ./dashdot.nix
./grafana.nix ./grafana.nix
./prometheus.nix
]; ];
} }

View file

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

View file

@ -0,0 +1,23 @@
_: {
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 @@
./homarr.nix ./homarr.nix
./dashdot.nix ./dashdot.nix
./miniflux.nix ./miniflux.nix
./prometheus.nix
]; ];
} }

View file

@ -0,0 +1,24 @@
_: {
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,6 +8,5 @@
./openssh.nix ./openssh.nix
./virtualisation.nix ./virtualisation.nix
./sops.nix ./sops.nix
./prometheus.nix
]; ];
} }