Merge pull request #956 from PaytmLabs/feature/prometheus/unique-servicemonitor

Ensure Prometheus ServiceMonitor is unique
This commit is contained in:
Paweł Krupa authored and GitHub committed 2021-02-22 08:39:47 +01:00
commit bc1026ae2b
2 files changed
+2 -2

No files matched your search

@@ -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,
},
+1 -1
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: