Create custom_pg_stat_statements.conf with the following data:

shared_preload_libraries = <%= @shared_preload_libraries %>
pg_stat_statements.max = 10000
pg_stat_statements.track = all