It's not possible to add Postgres with pg_stat_monitor extension for pmm2-client < 2.41.2

Description

STR:

  1. Start PMM server 2.41.2

  2. Install and configure pmm2-client 2.41.1

  3. Enable pg_stat_monitor extension on Postgres

  4. Add Postgres with pg_stat_monitor as query source: pmm-admin add postgresql --query-source=pgstatmonitor

Actual result: pg_stat_statements agent is started instead of pg_stat_monitor agent. In logs:
Could not to detect the pg_stat_monitor extension on your system. Falling back to the pg_stat_statements

 

 

Expected result: pg_stat_monitor agent is started

How to test

See “Steps to reproduce”.

How to document

No doc needed since behaviour for older versions will persist as previously.

Attachments

2

Smart Checklist

hide

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Needs QA

Yes

Needs Doc

No

Planned Version/s

Fix versions

Story Points

Regression Issue

Yes

Found by Automation

Yes

Affects versions

Smart Checklist Progress

Smart Checklist

Created March 14, 2024 at 10:21 AM
Updated August 8, 2024 at 5:02 AM
Resolved March 18, 2024 at 9:57 AM