diff options
author | lassulus <lassulus@lassul.us> | 2018-04-28 09:43:17 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-04-28 09:43:17 +0200 |
commit | a0862fa505ba8fb1d94c8bdac69a2077ba89bcdc (patch) | |
tree | 9d6812786ed1597b7ff3ebe4b330652bc7fe5445 /lass/2configs | |
parent | dabd9f0f02b44b048b6355184fa64612201db72d (diff) |
l monitoring: monitor more hosts
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/monitoring/prometheus-server.nix | 9 |
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"; + #}; } ]; } |