Ensure Prometheus ServiceMonitor is unique

This commit is contained in:
Maxime Brunet
2021-02-19 15:08:35 -08:00
parent d909241c4a
commit f039fc94cf
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,
},