@cunnect you can route metrics using tags which should work in your case by just adding a bucket tag and use the bucket_tag option of a single InfluxDBv2 output like
so you sent your data to port 8092 for bucket1 and to port 8093 for bucket2. As you can see in my config, there are two inputs.socket_listener instances, one for each port. The listener for port 8092 then adds a tag bucket = "bucket1" to each metric (through the [inputs.socket_listener.tags] definition). The listener for port 8093 adds bucket = "bucket2" as defined in the config above.
Now every metric received through port 8082 has the bucket tag set to bucket1 and each metric received through port 8083 has the bucket tag set to bucket2. The output will then use the tag with the name defined in the bucket_tag setting (bucket in the case above) to select which bucket a metric should go to based on the value of the tag. So everything received through port 8089 goes to bucket1 and everything received through port 8093 goes to bucket2…