metrics: fix wrong url part being used for host

The host returned by url.parse() is the NAME:PORT, if you want just
the NAME, it is the hostname.
v0.2.4