d_' + parent.layui.$("#userName").val());
		var replicaName = parent.replicaName;
		
		var ps = [];
		for(var i in metricsTypes){
			ps.push(metricsData($, replicaName, metricsTypes[i], startTime, endTime));
		}
		
		Promise.all(ps).then((result) => {
			doDraw(records, result);
		}).catch((error) => {
			console.log(error);
		})
	}
	
	function metricsData($, replicaName, metricsType, startTime, endTime){
		let promise = new Promise((resolve, reject) => {
			$.ajax({
				url: '/app/env/replica/metrics/list'