driver/collector/postgres_collector.py
def _get_stat_statements(self) -> List[Dict[str, Any]]:
        """
        Get statement statistics from pg_stat_statements module.
        """

        res = []
        success = self._load_stat_statements()
        if success:
            try:
                res = self._get_metrics(self.PG_STAT_STATEMENTS_SQL)
            except PostgresCollectorException as ex:
                logging.error(
                    "Failed to load pg_stat_statements module, you need to add "
                    "pg_stat_statements in parameter shared_preload_libraries: %s",
                    ex,
                )
        return res

        Get statement statistics from pg_stat_statements module.
        
Get statement statistics from pg_stat_statements module.
Get statement statistics from pg_stat_statements module .
def _get_stat_statements(self) -> List[Dict[str, Any]]:
        res = []
        success = self._load_stat_statements()
        if success:
            try:
                res = self._get_metrics(self.PG_STAT_STATEMENTS_SQL)
            except PostgresCollectorException as ex:
                logging.error(
                    "Failed to load pg_stat_statements module, you need to add "
                    "pg_stat_statements in parameter shared_preload_libraries: %s",
                    ex,
                )
        return res
def _get_stat_statements ( self ) -> List [ Dict [ str , Any ] ] : res = [ ] success = self . _load_stat_statements ( ) if success : try : res = self . _get_metrics ( self . PG_STAT_STATEMENTS_SQL ) except PostgresCollectorException as ex : logging . error ( "Failed to load pg_stat_statements module, you need to add " "pg_stat_statements in parameter shared_preload_libraries: %s" , ex , ) return res
Get statement statistics from pg_stat_statements module.
Get statement statistics from pg_stat_statements module .
"""
        Get statement statistics from pg_stat_statements module.
        """
self