(self, scraper_config)
Configures a PrometheusScaper object with query credentials
        :param scraper: valid PrometheusScaper object
        :param endpoint: url that will be scraped
Configures a PrometheusScaper object with query credentials
        :param scraper: valid PrometheusScaper object
        :param endpoint: url that will be scraped
Configures a PrometheusScaper object with query credentials : param scraper : valid PrometheusScaper object : param endpoint : url that will be scraped
def configure_scraper(self, scraper_config):
        """
        Configures a PrometheusScaper object with query credentials
        :param scraper: valid PrometheusScaper object
        :param endpoint: url that will be scraped
        """
        endpoint = scraper_config['prometheus_url']
        scraper_config.update(
            {
                'ssl_ca_cert': self._ssl_verify,
                'ssl_cert': self._ssl_cert,
                'ssl_private_key': self._ssl_private_key,
                'extra_headers': self.headers(endpoint) or {},
            }
        )
def configure_scraper ( self , scraper_config ) : endpoint = scraper_config [ 'prometheus_url' ] scraper_config . update ( { 'ssl_ca_cert' : self . _ssl_verify , 'ssl_cert' : self . _ssl_cert , 'ssl_private_key' : self . _ssl_private_key , 'extra_headers' : self . headers ( endpoint ) or { } , } )