nixos-servers/services/monitoring/prometheus.nix
Torjus Håkestad b62a5c3db9
Some checks failed
Run nix flake check / flake-check (push) Failing after 3m25s
Periodic flake update / flake-update (push) Successful in 1m45s
Disable alertmanager
2024-12-01 23:45:45 +01:00

29 lines
623 B
Nix

{ ... }:
{
services.prometheus = {
enable = true;
alertmanager = {
enable = false;
};
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"
];
}
];
}
];
};
}