mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-11-07 19: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',
|
apiVersion: 'monitoring.coreos.com/v1',
|
||||||
kind: 'ServiceMonitor',
|
kind: 'ServiceMonitor',
|
||||||
metadata: {
|
metadata: {
|
||||||
name: 'prometheus',
|
name: 'prometheus-' + p.config.name,
|
||||||
namespace: p.config.namespace,
|
namespace: p.config.namespace,
|
||||||
labels: p.config.commonLabels,
|
labels: p.config.commonLabels,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -6,7 +6,7 @@ metadata:
|
|||||||
app.kubernetes.io/name: prometheus
|
app.kubernetes.io/name: prometheus
|
||||||
app.kubernetes.io/part-of: kube-prometheus
|
app.kubernetes.io/part-of: kube-prometheus
|
||||||
app.kubernetes.io/version: 2.24.0
|
app.kubernetes.io/version: 2.24.0
|
||||||
name: prometheus
|
name: prometheus-k8s
|
||||||
namespace: monitoring
|
namespace: monitoring
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user