Fixing the methods for metric collector

Signed off by: Daniel Paulino Alves <danpaulalves@gmail.com>