Only put metrics to CloudWatch if namespace set