Join our community: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
backend/src/lib/pg-pool.ts creates the raw pg.Pool used alongside Prisma, but its connection metrics are never surfaced anywhere, making it hard to diagnose connection exhaustion in production without shelling into the box.
Acceptance criteria
Files to touch
backend/src/lib/pg-pool.ts
backend/src/routes/v1/admin.routes.ts
Out of scope
Does not add a new monitoring/alerting integration.
Why this matters
backend/src/lib/pg-pool.ts creates the raw pg.Pool used alongside Prisma, but its connection metrics are never surfaced anywhere, making it hard to diagnose connection exhaustion in production without shelling into the box.
Acceptance criteria
Files to touch
backend/src/lib/pg-pool.tsbackend/src/routes/v1/admin.routes.tsOut of scope
Does not add a new monitoring/alerting integration.