add write method to metric
take out metric writers in repoUpdateService