add process_metrics and manage method