mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-11-01 16:41:02 +01:00
Ensure Prometheus ServiceMonitor is unique
This commit is contained in:
parent
d909241c4a
commit
f039fc94cf
@ -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,
|
||||
},
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user