Fix #496, clean up metrics.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>