forked from DGNum/infrastructure
fix(machines/storage01): scrape all exporter ports
There may be more than one port for a given node. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
parent
bb7f538110
commit
ecf5fefbaa
1 changed files with 3 additions and 1 deletions
|
@ -18,7 +18,9 @@ let
|
|||
node:
|
||||
{ config, ... }:
|
||||
lib.optional config.dgn-node-monitoring.enable {
|
||||
targets = [ "${node}.dgnum:${builtins.toString config.dgn-node-monitoring.port}" ];
|
||||
targets = map (p: "${node}.dgnum:${builtins.toString p}") (
|
||||
builtins.attrValues config.dgn-node-monitoring.ports
|
||||
);
|
||||
labels = {
|
||||
host = node;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue