Improve monitoring stuff
Some checks failed
Run nix flake check / flake-check (push) Failing after 23m19s

This commit is contained in:
2024-12-01 20:51:14 +01:00
parent 32425807fc
commit a4592ffda3
4 changed files with 30 additions and 28 deletions

View File

@@ -3,5 +3,6 @@
imports = [
./loki.nix
./grafana.nix
./prometheus.nix
];
}

View File

@@ -2,5 +2,27 @@
{
services.prometheus = {
enable = true;
alertmanager = {
enable = true;
};
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"
];
}
];
}
];
};
}