refactored kubernetes cluster monitor