l monitoring: monitor more hosts

This commit is contained in:
lassulus 2018-04-28 09:43:17 +02:00
parent dabd9f0f02
commit a0862fa505

View File

@ -130,11 +130,10 @@
static_configs = [
{
targets = [
"localhost:9100"
];
labels = {
alias = "prometheus.example.com";
};
] ++ map (host: "${host}:9100") (lib.attrNames (lib.filterAttrs (_: host: host.owner.name == "lass" && host.monitoring) config.krebs.hosts));
#labels = {
# alias = "prometheus.example.com";
#};
}
];
}