summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-04-28 09:43:17 +0200
committerlassulus <lassulus@lassul.us>2018-04-28 09:43:17 +0200
commita0862fa505ba8fb1d94c8bdac69a2077ba89bcdc (patch)
tree9d6812786ed1597b7ff3ebe4b330652bc7fe5445 /lass/2configs
parentdabd9f0f02b44b048b6355184fa64612201db72d (diff)
l monitoring: monitor more hosts
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/monitoring/prometheus-server.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/lass/2configs/monitoring/prometheus-server.nix b/lass/2configs/monitoring/prometheus-server.nix
index c5c97412d..92bb0519f 100644
--- a/lass/2configs/monitoring/prometheus-server.nix
+++ b/lass/2configs/monitoring/prometheus-server.nix
@@ -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";
+ #};
}
];
}