postgres_exporter icon indicating copy to clipboard operation
postgres_exporter copied to clipboard

Hardcoded slot_name in pg_stat_wal_receiver collector

Open maxout123 opened this issue 1 year ago • 0 comments

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

maxout123 avatar Mar 11 '24 11:03 maxout123