fix server metrics to avoid NaN and Infinity
Merge pull request #497 from metamx/fix-metrics

Fix server metrics to avoid NaN and Infinity