postgresql_metrics
Vector source does not work with PostgreSQL 17
#22094
Labels
source: postgresql_metrics
Anything `postgresql_metrics` source related
type: bug
A code related bug.
A note for the community
I have uploaded a reproduction case for convenience: https://github.com/unflxw/vector-postgres-repro
Thank you for looking into this :)
Problem
When pointing the
postgresql_metrics
vector source at a PostgreSQL 17 instance, the source does not emit any metrics other thanup
, and instead emits errors related to thecheckpoints_timed
column being missing:This issue occurs when using PostgreSQL versions 17.0, 17.1 or 17.2. They do not occur on the latest 16.x release.
The likely cause is that the
checkpoints_timed
column, along with other metrics inpg_stat_bgwriter
, was renamed and moved to thepg_stat_checkpointer
table in PostgreSQL 17: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=96f052613f35d07d001c8dd2f284ca8d95f82d1bConfiguration
Version
vector 0.44.0 (x86_64-unknown-linux-musl 029a2ff 2024-12-28 05:06:50.742487563) (current
timberio/vector:nightly-alpine
)Debug Output
Example Data
No response
Additional Context
I reproduced the issue on Alpine containers on Docker for convenience, though I do not believe the issue is exclusive to either Alpine or Docker.
References
No response
The text was updated successfully, but these errors were encountered: