Add functionality to update metric data