prepare for file as metric source