cloudnative-pg
cloudnative-pg copied to clipboard
feat: add additional labels for pod monitor in Cluster
Adds the possibility to add additional labels to just the pod monitor. Currently, this is already possible by setting them on the Cluster object, but then a significant amount of resources get labeled with labels that are not relevant there. This is to support multi-tenant Prometheus situations where there might be separate Prometheus scrapers
Fixes: #4435
:exclamation: By default, the pull request is configured to backport to all release branches.
- To stop backporting this pr, remove the label: backport-requested :arrow_backward: or add the label 'do not backport'
- To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y
Any chance this one get approval ? :-)
We can't use .spec.monitoring.enablePodMonitor: true for this exact same reason (mutiple prometheus instances in the k8s cluster) and have to manage PodMonitor by ourselves because of the inability to specify a custom prometheus label.