method to write capacity measurements to static file