Per-database metrics collection for PostgreSQL

Description

Currently PMM have issues with collecting per-database metrics from PostgreSQL, because it creates 1 connection per DB and keeps connection. We improved behaviour in PMM 2.40.1 and 2.41.0 by providing limit to disable autodiscovery feature, but still need some improvements.

Because of how PostgreSQL implemented each connection to DB starts new process which affects on the performance

How to test

--

How to document

New parameter `--max-connections=10` was added to `pmm-admin` command, which controls how many connection postgres exporter can open.

100% Done
Loading...

Smart Checklist

hide

Activity

Done

Details

Assignee

Reporter

Priority

Components

Labels

Needs QA

No

Needs Doc

Yes

Planned Version/s

Fix versions

Story Points

Smart Checklist Progress

Epic Name

Smart Checklist

Created February 5, 2024 at 3:47 PM
Updated August 8, 2024 at 5:02 AM
Resolved June 3, 2024 at 6:28 AM