Ensure Prometheus ServiceMonitor is unique

This commit is contained in:
Maxime Brunet 2021-02-19 15:08:35 -08:00
parent d909241c4a
commit f039fc94cf
No known key found for this signature in database
GPG Key ID: 757B11B65F872567
2 changed files with 2 additions and 2 deletions

View File

@ -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,
},

View File

@ -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: