Base class for metrics modules

Base class for metrics modules.