Make prefix optional.  Add graphite support ('flatten' hostnames)