Add scale key to Metric struct

- 114cbe2 and  2e98ec9 are commits for refactoring.