Brianip/metrics fix

Filter out NaN values from JSON by setting ?allowNaN=false
@syamp
suggest removing localhost:12345 part if we don't really need to listen on the port for this test.