Custom mapping for metrics.