change elasticsearch metrics to use requests