The document describes creating a wrapper for the ElasticSearch client used by three services - Bernard, Ernest and Wally. The wrapper will measure query times for each client and publish metrics to JMX. CollectD will collect the metrics and send them to Cosmos for graphical representation. This will help identify which service is causing issues if ElasticSearch goes down. The wrapper uses Yammer metrics to time synchronous function calls across the client and decorate asynchronous listeners to time individual queries.