// There are some metrics that have same metric name, but just different prefix.
// e.g for netty_send_time, full metric name is dest_ip:port-name
// The metrics with same metric name will be sum here.
public void updateMetricData(MetricInfo metricInfo) {
String name = metricInfo.getName();
Metric metric = metricInfo.getMetric();
LOG.debug("Metric name=" + name);
if (metric instanceof QueueGauge) {
//covert to %
float queueRatio = (((QueueGauge) metric).getValue())*100;
sum(gaugeData, name, (double)queueRatio);