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