Integrate Thrift API to keep track of metrics in ElasticityScheduler.