added mem metric

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
formatting

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
Minor refactor

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>