pass metric type as string