B20901 integrate pulse metrics 2

address code review comments.