update metric metadata asynchronously

Change-Id: I7aa896cae1eedcd6917dcbabc070321d0c01af1f