m/monitoring: deprecations being annoying
This commit is contained in:
parent
63077293c3
commit
bb54ac77b2
1 changed files with 5 additions and 2 deletions
|
@ -29,8 +29,11 @@ let
|
|||
getEnabled = x:
|
||||
lib.concatMap (name:
|
||||
let v = x.${name};
|
||||
in if builtins.typeOf v == "set" && v.enable then [ v ] else [ ])
|
||||
(lib.attrNames x);
|
||||
in if (!builtins.elem name [ "minio" "tor" ]) && builtins.typeOf v
|
||||
== "set" && v.enable then
|
||||
[ v ]
|
||||
else
|
||||
[ ]) (lib.attrNames x);
|
||||
# TODO: add some magic to configure endpoints for all the other exporters
|
||||
localExporterEndpoints =
|
||||
map (x: x.listenAddress + ":" + builtins.toString x.port)
|
||||
|
|
Loading…
Add table
Reference in a new issue