adyya-flake/services/monitoring/prometheus.mod.nix
Ittihadyya 6c59595a11
Some checks failed
/ Check formatting (push) Failing after 1s
fuck it, no more fancy stuff, just do it like this
2024-12-20 18:07:15 +02:00

34 lines
692 B
Nix

{
universal.modules = [
{
services.prometheus.exporters = {
node = {
enable = true;
enabledCollectors = ["systemd"];
port = 6703;
};
varnish.enable = true;
};
}
];
glucose.modules = [
({
services.prometheus = {
enable = true;
port = 6750;
enableReload = true;
scrapeConfigs = [
{
job_name = "devices";
static_configs = [
{
targets = [ "10.24.1.4:6703" "10.24.1.9:6703" "10.24.1.16:6703" "10.24.1.225:6703" "10.24.1.196:6703" ];
}
];
}
];
};
})
];
}