Brianip/metrics fix

Filter out NaN values from JSON by setting ?allowNaN=false
@syamp
Maybe write couple of tests for this interface?