Add unit selector to custom metric dialog.

This adds a pull down for selecting the unit of a custom metric.