diff --git a/jsonnet/kube-prometheus/components/prometheus.libsonnet b/jsonnet/kube-prometheus/components/prometheus.libsonnet index f3cbe07dfcd9486f9f95b9cb2334db4481aaafdd..58b8e517211549fb80cf5ea0a2f7b10a7718c893 100644 --- a/jsonnet/kube-prometheus/components/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus.libsonnet @@ -282,7 +282,7 @@ function(params) { apiVersion: 'monitoring.coreos.com/v1', kind: 'ServiceMonitor', metadata: { - name: 'prometheus', + name: 'prometheus-' + p.config.name, namespace: p.config.namespace, labels: p.config.commonLabels, }, diff --git a/manifests/prometheus-serviceMonitor.yaml b/manifests/prometheus-serviceMonitor.yaml index a36e394176e2078ae85a8b3bc125360bb8d0e7a7..1d91cbc2a198387d5cd488c611068ed648d019a2 100644 --- a/manifests/prometheus-serviceMonitor.yaml +++ b/manifests/prometheus-serviceMonitor.yaml @@ -6,7 +6,7 @@ metadata: app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 2.24.0 - name: prometheus + name: prometheus-k8s namespace: monitoring spec: endpoints: