Adding user defined metrics to metricsProperties