snowflake/hosts/sakura/services/prometheus.nix
notohh bdee5b8619
All checks were successful
ci/woodpecker/push/checks Pipeline was successful
hosts: init prometheus on hosts
2023-06-19 09:23:56 -04:00

23 lines
483 B
Nix

_: {
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"];
};
};
};
}