(self, metric, scraper_config)
Whether the node is in a memory pressure state (legacy)
Whether the node is in a memory pressure state (legacy)
Whether the node is in a memory pressure state ( legacy )
def kube_node_status_memory_pressure(self, metric, scraper_config):
        """Whether the node is in a memory pressure state (legacy)"""
        service_check_name = scraper_config['namespace'] + '.node.memory_pressure'
        for sample in metric.samples:
            node_tags = self._label_to_tags("node", sample[self.SAMPLE_LABELS], scraper_config)
            self._condition_to_service_check(
                sample,
                service_check_name,
                self.condition_to_status_negative,
                tags=node_tags + scraper_config['custom_tags'],
            )
def kube_node_status_memory_pressure ( self , metric , scraper_config ) : service_check_name = scraper_config [ 'namespace' ] + '.node.memory_pressure' for sample in metric . samples : node_tags = self . _label_to_tags ( "node" , sample [ self . SAMPLE_LABELS ] , scraper_config ) self . _condition_to_service_check ( sample , service_check_name , self . condition_to_status_negative , tags = node_tags + scraper_config [ 'custom_tags' ] , )