def METHOD_NAME(self, _):
    scraper_config = self.config_map[self.endpoint]
    try:
        self.process(scraper_config)
        self.service_check(self.PROMETHEUS_SERVICE_CHECK_NAME, OpenMetricsBaseCheck.OK, self._tags)
    except requests.exceptions.ConnectionError as e:
        # Unable to connect to the metrics endpoint
        self.service_check(
            self.PROMETHEUS_SERVICE_CHECK_NAME,
            OpenMetricsBaseCheck.CRITICAL,
            self._tags,
            message="Unable to retrieve Prometheus metrics from endpoint {}: {}".format(self.endpoint, e),
        )
    # Service check to check Gitlab's health endpoints
    for check_type in self.ALLOWED_SERVICE_CHECKS:
        self._check_health_endpoint(check_type)
    self.submit_version()