nixos-servers/services/monitoring/prometheus.nix

29 lines
623 B
Nix
Raw Normal View History

2024-12-01 00:51:29 +00:00
{ ... }:
{
services.prometheus = {
enable = true;
2024-12-01 19:51:14 +00:00
alertmanager = {
2024-12-01 22:45:45 +00:00
enable = false;
2024-12-01 19:51:14 +00:00
};
scrapeConfigs = [
{
job_name = "node-exporter";
static_configs = [
{
targets = [
# Node exporter
"gunter.home.2rjus.net:9100"
"ca.home.2rjus.net:9100"
"monitoring01.home.2rjus.net:9100"
"ns1.home.2rjus.net:9100"
"ns2.home.2rjus.net:9100"
"http-proxy.home.2rjus.net:9100"
"ha1.home.2rjus.net:9100"
];
}
];
}
];
2024-12-01 00:51:29 +00:00
};
}