read metrics to remove mem leak issue