use set_metric instead of metric to record cpu, memory and disk

I think it makes more sense to get this set as a metric rather than increment it every time.

regards
Merge pull request #33 from mvillarejo/patch-1

use set_metric instead of metric to record cpu, memory and disk