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
Merge branch 'release/0.2.4' into production
Merge tag 'v0.2.4'

v0.2.4