Open
Description
Please, answer some short questions which should help us to understand your problem / question better?
- Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.8.2
- Where do you run it - cloud or metal? Kubernetes or OpenShift? STACKIT Kubernetes Engine SKE
- Are you running Postgres Operator in production? yes
- Type of issue? feature request
We'd like to fetch the metrics provided by patroni under /metrics in the DB instance pod via prometheus. We're using the prometheus-operator and so are limited to the CRD for podMonitor or serviceMonitor to define scrape targets.
Sadly they only allow to configure scrape targets via port names not numbers. So to be able to scrape patroni metrics i'd like to add meaningful names to the ports of the postgresql-pod for patroni at least.