hosts: consolidate prometheus

This commit is contained in:
notohh 2023-06-19 12:47:01 -04:00
parent 0853fb537e
commit afd1c72cdb
Signed by: notohh
GPG key ID: BD47506D475EE86D
9 changed files with 5 additions and 99 deletions

View file

@ -2,6 +2,5 @@ _: {
imports = [
./postgresql.nix
./redis.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

@ -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"];
};
};
};
}