Collects metrics from a elasticsearch