i tried it in the elasticsearch in container started without mapping volumes. it should was clean.
sample document
{"name":"test-api","metrics":[{"name":"mem","value":738891.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"mem.free","value":478694.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"heap.committed","value":598528.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"heap.init","value":786432.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"heap.used","value":119833.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"heap","value":699392.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"nonheap.committed","value":143424.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"nonheap.init","value":2496.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"nonheap.used","value":140363.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"nonheap","value":0.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"threads.peak","value":115.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"threads.daemon","value":100.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"threads.totalStarted","value":1370.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"threads","value":114.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"gc.ps_scavenge.count","value":1102.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"gc.ps_scavenge.time","value":11410.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"gc.ps_marksweep.count","value":3.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"gc.ps_marksweep.time","value":2099.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"gauge.servo.response.templates","value":405.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"gauge.servo.rest.min","value":0.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"gauge.servo.rest.max","value":0.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"gauge.servo.response.health","value":1.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"gauge.servo.counter.span.accepted","value":1.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"httpsessions.max","value":-1.0,"timestamp":"2017-06-06T20:10:05.065Z"},{"name":"httpsessions.active","value":0.0,"timestamp":"2017-06-06T20:10:05.065Z"}],"createdTime":"2017-06-06T17:10:05.065Z","properties":{}