Introduced general-purpose MetricsConfig class.