Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcoded slot_name in pg_stat_wal_receiver collector #1012

Open
maxout123 opened this issue Mar 11, 2024 · 0 comments
Open

Hardcoded slot_name in pg_stat_wal_receiver collector #1012

maxout123 opened this issue Mar 11, 2024 · 0 comments

Comments

@maxout123
Copy link

https://github.com/prometheus-community/postgres_exporter/blob/b126e621db083d4299120c02b157e0e13aafa7a4/collector/pg_stat_walreceiver.go#L118C3-L118C68

slot_name format is hardcoded to be repmgr_slot_([0-9]*), while slots can have any name you like.
With custom slot names the whole collector doesn't work with collector=stat_wal_receiver msg="Skipping wal receiver stats because upstream_node is null" message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant