(self, conn, tags)
Collect metrics from the monitor backend
Collect metrics from the monitor backend
Collect metrics from the monitor backend
def _collect_monitor_metrics(self, conn, tags):
        """
        Collect metrics from the monitor backend
        """
        for entry in conn.entries:
            # Get metrics from monitor backend
            dn = entry.entry_dn.lower()
            if dn.endswith(self.CONNECTIONS_METRICS_DN):
                self._handle_connections_entry(entry, tags)
            elif dn.endswith(self.OPERATIONS_METRICS_DN):
                self._handle_operations_entry(entry, tags)
            elif dn.endswith(self.STATISTICS_METRICS_DN):
                self._handle_statistics_entry(entry, tags)
            elif dn.endswith(self.THREADS_METRICS_DN):
                self._handle_threads_entry(entry, tags)
            elif dn.endswith(self.TIME_METRICS_DN):
                self._handle_time_entry(entry, tags)
            elif dn.endswith(self.WAITERS_METRICS_DN):
                self._handle_waiters_entry(entry, tags)
def _collect_monitor_metrics ( self , conn , tags ) : for entry in conn . entries : # Get metrics from monitor backend dn = entry . entry_dn . lower ( ) if dn . endswith ( self . CONNECTIONS_METRICS_DN ) : self . _handle_connections_entry ( entry , tags ) elif dn . endswith ( self . OPERATIONS_METRICS_DN ) : self . _handle_operations_entry ( entry , tags ) elif dn . endswith ( self . STATISTICS_METRICS_DN ) : self . _handle_statistics_entry ( entry , tags ) elif dn . endswith ( self . THREADS_METRICS_DN ) : self . _handle_threads_entry ( entry , tags ) elif dn . endswith ( self . TIME_METRICS_DN ) : self . _handle_time_entry ( entry , tags ) elif dn . endswith ( self . WAITERS_METRICS_DN ) : self . _handle_waiters_entry ( entry , tags )