(self, data, services_incl_filter=None, services_excl_filter=None)
Stick table metrics processing. Two metrics will be created for each stick table (current and max size)
Stick table metrics processing. Two metrics will be created for each stick table (current and max size)
Stick table metrics processing . Two metrics will be created for each stick table ( current and max size )
def _process_stick_table_metrics(self, data, services_incl_filter=None, services_excl_filter=None):
        """
        Stick table metrics processing. Two metrics will be created for each stick table (current and max size)
        """
        for line in data:
            table = StickTable.parse(line)
            if table is None:
                continue
            if self._is_service_excl_filtered(table.name):
                continue

            tags = ["haproxy_service:%s" % table.name, "stick_type:%s" % table.type]
            tags.extend(self.custom_tags)
            self.gauge("haproxy.sticktable.size", float(table.size), tags=tags)
            self.gauge("haproxy.sticktable.used", float(table.used), tags=tags)
def _process_stick_table_metrics ( self , data , services_incl_filter = None , services_excl_filter = None ) : for line in data : table = StickTable . parse ( line ) if table is None : continue if self . _is_service_excl_filtered ( table . name ) : continue tags = [ "haproxy_service:%s" % table . name , "stick_type:%s" % table . type ] tags . extend ( self . custom_tags ) self . gauge ( "haproxy.sticktable.size" , float ( table . size ) , tags = tags ) self . gauge ( "haproxy.sticktable.used" , float ( table . used ) , tags = tags )