Skip to content
Snippets Groups Projects
Unverified Commit f039fc94 authored by Maxime Brunet's avatar Maxime Brunet
Browse files

Ensure Prometheus ServiceMonitor is unique

parent d909241c
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment