Analysis and Design of Metrics for Autonomic Computing