snowflake/modules/prometheus.nix

30 lines
673 B
Nix
Raw Normal View History

2023-06-19 12:47:07 -04:00
_: {
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"];}];
}
2023-10-17 00:47:58 -04:00
{
job_name = "traefik";
scrape_interval = "30s";
static_configs = [{targets = ["100.87.54.48:8080"];}];
}
2023-06-19 12:47:07 -04:00
];
exporters = {
node = {
enable = true;
enabledCollectors = ["systemd" "cpu"];
};
};
};
}