Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(infra): add pganalyze collector with auto_explain (#2589)

gbirmanc067ed33cb68
diff --git a/infra/stacks/macrodb/index.ts b/infra/stacks/macrodb/index.ts
index 1430406c64..41098e17b5 100644
--- a/infra/stacks/macrodb/index.ts
+++ b/infra/stacks/macrodb/index.ts
@@ -28,6 +28,20 @@ const parameterGroup = new aws.rds.ParameterGroup(
{ name: 'max_wal_size', value: '16384' },
{ name: 'min_wal_size', value: '4096' },
{ name: 'vacuum_cost_page_miss', value: '10' },
+ {
+ name: 'shared_preload_libraries',
+ value: 'pg_stat_statements,auto_explain',
+ applyMethod: 'pending-reboot',
+ },
+ { name: 'auto_explain.log_format', value: 'json' },
+ { name: 'auto_explain.log_min_duration', value: '1000' },
+ { name: 'auto_explain.log_analyze', value: 'on' },
+ { name: 'auto_explain.log_buffers', value: 'on' },
+ { name: 'auto_explain.log_timing', value: 'off' },
+ { name: 'auto_explain.log_triggers', value: 'on' },
+ { name: 'auto_explain.log_verbose', value: 'on' },
+ { name: 'auto_explain.log_nested_statements', value: 'on' },
+ { name: 'auto_explain.sample_rate', value: '1' },
],
tags,
},