add "custom." prefix to metrics_prefix when needed