(self, input_gen, scraper_config)
Filters out the text input line by line to avoid parsing and processing
        metrics we know we don't want to process. This only works on `text/plain`
        payloads, and is an INTERNAL FEATURE implemented for the kubelet check
        :param input_get: line generator
        :output: generator of filtered lines
Filters out the text input line by line to avoid parsing and processing
        metrics we know we don't want to process. This only works on `text/plain`
        payloads, and is an INTERNAL FEATURE implemented for the kubelet check
        :param input_get: line generator
        :output: generator of filtered lines
Filters out the text input line by line to avoid parsing and processing metrics we know we don t want to process . This only works on text / plain payloads and is an INTERNAL FEATURE implemented for the kubelet check : param input_get : line generator : output : generator of filtered lines
def _text_filter_input(self, input_gen, scraper_config):
        """
        Filters out the text input line by line to avoid parsing and processing
        metrics we know we don't want to process. This only works on `text/plain`
        payloads, and is an INTERNAL FEATURE implemented for the kubelet check
        :param input_get: line generator
        :output: generator of filtered lines
        """
        for line in input_gen:
            for item in scraper_config['_text_filter_blacklist']:
                if item in line:
                    self._send_telemetry_counter(self.TELEMETRY_COUNTER_METRICS_BLACKLIST_COUNT, 1, scraper_config)
                    break
            else:
                # No blacklist matches, passing the line through
                yield line
def _text_filter_input ( self , input_gen , scraper_config ) : for line in input_gen : for item in scraper_config [ '_text_filter_blacklist' ] : if item in line : self . _send_telemetry_counter ( self . TELEMETRY_COUNTER_METRICS_BLACKLIST_COUNT , 1 , scraper_config ) break else : # No blacklist matches, passing the line through yield line