def _remove_metric_prefix(self, metric, scraper_config):
    prometheus_metrics_prefix = scraper_config['prometheus_metrics_prefix']
    return (metric[len(prometheus_metrics_prefix):] if metric.startswith(prometheus_metrics_prefix) else metric)
def _remove_metric_prefix(self, metric, scraper_config):
    prometheus_metrics_prefix = scraper_config['prometheus_metrics_prefix']
    return (metric[len(prometheus_metrics_prefix):] if metric.startswith(prometheus_metrics_prefix) else metric)