move building of metric name in to its own function for extensibility