add classes for collecting and exporting metrics