Updated metric writer and added warning for reading unknown metrics.