Refactored MetricsActor

# using object instead of string
# formatter should be created once