use unix style path for command line
write metrics to json
expose http listener
update sample to use MetricsHttpListener