Set CloudWatch endpoint. Deal with NaN values.