put addmetrics and an method on a unit, only allow metrics to be added if the unit is alive