@bart.schelstraete It looks like you are running some custom metric collector:- pg_custom_replication_wal, which is unable to perform operations on read-only replicas. Do you have the details on what exactly the custom metrics are trying to get or execute?
If I am correct, you are not seeing these messages in the Primary. Right?
I’ve run into the same issue, described more in detail in this github issue. There is monitoring in my kluster already present, but it does not autodetect anything and is also not configured to scrape from these instances. So I don’t think it has anything to do with custom queries, but rather with the configuration of pmm-client that natively ships with operator 2.7.0. Or, as I assume, it has something to do with the postgres_exporter and its inability to skip querying instances that are in replica state.