update api key metrics