add support for retrieving metric data