tested with the PR, the 2 service monitors have exactly the same namespace selector and label selector, Observe > Targets page now show the correct service monitor, see the picture. # oc -n ns1 get servicemonitor NAME AGE prometheus-example-monitor-1 11m prometheus-example-monitor-2 10m # oc -n ns1 get servicemonitor prometheus-example-monitor-1 -o jsonpath="{.spec.namespaceSelector}"; echo -e "\n"; oc -n ns1 get servicemonitor prometheus-example-monitor-1 -o jsonpath="{.spec.selector.matchLabels}" {"matchNames":["ns1"]} {"app":"prometheus-example-app"} # oc -n ns1 get servicemonitor prometheus-example-monitor-2 -o jsonpath="{.spec.namespaceSelector}"; echo -e "\n"; oc -n ns1 get servicemonitor prompath="{.spec.selector.matchLabels}" {"matchNames":["ns1"]} {"app":"prometheus-example-app"}
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0056