Refactored MetricsActor

1. using object instead of string
2. formatter should be created once