fix elasticsearch metrics