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 = [ imports = [
./postgresql.nix ./postgresql.nix
./redis.nix ./redis.nix
./prometheus.nix
]; ];
} }

View file

@ -2,7 +2,6 @@ _: {
imports = [ imports = [
./traefik.nix ./traefik.nix
./torrent.nix ./torrent.nix
./prometheus.nix
]; ];
services.radarr = { services.radarr = {
enable = true; 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 ./hedgedoc.nix
./dashdot.nix ./dashdot.nix
./grafana.nix ./grafana.nix
./prometheus.nix
]; ];
} }

View file

@ -31,6 +31,11 @@
USER = "forgejo"; USER = "forgejo";
PASSWD = "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 ./homarr.nix
./dashdot.nix ./dashdot.nix
./miniflux.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 ./openssh.nix
./virtualisation.nix ./virtualisation.nix
./sops.nix ./sops.nix
./prometheus.nix
]; ];
} }