finish stats endpoint with metrics