I am new to Kubernetes. I created a server monitor and the selector select two services:
apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: app: servicemonitor-sms-services release: kube-prom-stack name: servicemonitor-sms-config-services namespace: metrics spec: selector: matchLabels: app: a-service app: b-service
I want the monitor watches both
b-service. The last above doesn’t work because I defined duplicated key. I am wondering how should I change it to?
Source: Docker Questions