Commit 9dffcd9a authored by cuiweifeng's avatar cuiweifeng

update : mon

parent 7f3b1383
......@@ -198,7 +198,8 @@ abstract class MysqlClusterBase
}
}
$end_time = microtime(true);
MonUtil::dbMon(self::$dbConf['server'].'_'.self::$dbConf['port'] ?? 'unknow_mysql', $method, 'mysql', $end_time-$start_time);
list($dbServer, $dbPort) = self::getDbServerPort($type, $dbShardingIndex);
MonUtil::dbMon($dbServer.'_'.$dbPort, $method, 'mysql', $end_time-$start_time);
return self::formatResult($method, $arguments);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment