2023-06-19 12:47:07 -04:00
|
|
|
_: {
|
|
|
|
networking.firewall.allowedTCPPorts = [9090];
|
|
|
|
services.prometheus = {
|
|
|
|
enable = true;
|
|
|
|
scrapeConfigs = [
|
|
|
|
{
|
|
|
|
job_name = "prometheus";
|
2023-10-17 02:45:11 -04:00
|
|
|
scrape_interval = "15s";
|
2023-06-19 12:47:07 -04:00
|
|
|
static_configs = [{targets = ["localhost:9090"];}];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "node";
|
2023-10-17 02:45:11 -04:00
|
|
|
scrape_interval = "15s";
|
2023-06-19 12:47:07 -04:00
|
|
|
static_configs = [{targets = ["localhost:9100"];}];
|
|
|
|
}
|
2023-10-17 00:47:58 -04:00
|
|
|
{
|
|
|
|
job_name = "traefik";
|
2023-10-17 02:45:11 -04:00
|
|
|
scrape_interval = "15s";
|
2023-11-30 22:28:36 -05:00
|
|
|
static_configs = [{targets = ["100.104.42.96:8080"];}];
|
2023-10-17 00:47:58 -04:00
|
|
|
}
|
2023-10-17 02:45:11 -04:00
|
|
|
{
|
|
|
|
job_name = "redis_exporter";
|
|
|
|
scrape_interval = "15s";
|
|
|
|
static_configs = [{targets = ["100.94.214.100:9002"];}];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "postgres";
|
|
|
|
scrape_interval = "15s";
|
|
|
|
static_configs = [{targets = ["100.94.214.100:9003"];}];
|
|
|
|
}
|
2023-11-30 22:28:36 -05:00
|
|
|
{
|
|
|
|
job_name = "blocky";
|
|
|
|
scrape_interval = "15s";
|
|
|
|
static_configs = [{targets = ["100.73.192.45:4000"];}];
|
|
|
|
}
|
2023-06-19 12:47:07 -04:00
|
|
|
];
|
|
|
|
exporters = {
|
|
|
|
node = {
|
|
|
|
enable = true;
|
|
|
|
enabledCollectors = ["systemd" "cpu"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|