Correct issue with storing metric group sample.
Basic implementation of mysql metric monitoring.