handle localhost as a bind host, substitute hostname into metric path