Formatting vm cluster monitor code