Error in percona logs - pg_stat_monitor: pg: out of memory

The problem of running out of memory is due to the fact that pg_stat_monitor does not collapse the same type of queries.