get target-buffer-size from viper
@@ -89,6 +89,7 @@ var subscribeCmd = &cobra.Command{
PrometheusAddress: viper.GetString("prometheus-address"),
Debug: viper.GetBool("debug"),
Format: viper.GetString("format"),
+ TargetReceiveBuffer: viper.GetUint("target-buffer-size"),
}
coll := collector.NewCollector(ctx, cfg, targetsConfig, subscriptionsConfig, outs, createCollectorDialOpts(), logger)
