Changing the metric writer to support cluster level metrics
resolving conflicts