Skip to content
Snippets Groups Projects
Unverified Commit bc1026ae authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

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

Ensure Prometheus ServiceMonitor is unique
parents d909241c f039fc94
No related branches found
No related tags found
No related merge requests found
...@@ -282,7 +282,7 @@ function(params) { ...@@ -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: ...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment