metrics: disallow null as metric name