hosts: consolidate prometheus
This commit is contained in:
parent
0853fb537e
commit
afd1c72cdb
9 changed files with 5 additions and 99 deletions
|
@ -2,6 +2,5 @@ _: {
|
|||
imports = [
|
||||
./postgresql.nix
|
||||
./redis.nix
|
||||
./prometheus.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -2,7 +2,6 @@ _: {
|
|||
imports = [
|
||||
./traefik.nix
|
||||
./torrent.nix
|
||||
./prometheus.nix
|
||||
];
|
||||
services.radarr = {
|
||||
enable = true;
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -10,6 +10,5 @@
|
|||
./hedgedoc.nix
|
||||
./dashdot.nix
|
||||
./grafana.nix
|
||||
./prometheus.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -31,6 +31,11 @@
|
|||
USER = "forgejo";
|
||||
PASSWD = "forgejo";
|
||||
};
|
||||
metrics = {
|
||||
ENABLED = true;
|
||||
ENABLED_ISSUE_BY_REPOSITORY = true;
|
||||
ENABLED_ISSUE_BY_LABEL = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -8,6 +8,5 @@
|
|||
./homarr.nix
|
||||
./dashdot.nix
|
||||
./miniflux.nix
|
||||
./prometheus.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue