I manage all my connections in ~/.ssh/config so that in iTerm, all my remote connections have the simple command "ssh <server>". ~/.ssh/config takes care of weird ports or different username, etc. I wrote a script that will generate a json file of dynamic profiles by reading in your ~/.ssh/config.
Save, make executable, run, and you'll have a file "profiles.json" in your iterm2 dynamic profiles directory.
If you want to use tags, you can add a comment to the Host line like this:
Host myserver # Tags=tag1, tag2
User myusername
Port 8022
This will create an iterm dynamic profile like this:
[
...
{
"Guid" : "myserver",
"Name" : "myserver",
"Shortcut" : "",
"Custom Command" : "Yes",
"Tags" : [
"tag1",
"tag2"
],
"Command" : "ssh myserver"
},
....
]