From 72ac32bf57b6f077a21fc040f0eef12df6d0ec11 Mon Sep 17 00:00:00 2001 From: Srivahni Date: Mon, 18 Mar 2019 10:27:18 -0700 Subject: Remove hardcoded values from values.yaml Change-Id: I21982d862e386dea3ec649f1f7186b1b29558233 Issue-ID: ONAPARC-442 Signed-off-by: Srivahni Chivukula --- .../collection/charts/prometheus/templates/servicemonitor.yaml | 7 +++---- vnfs/DAaaS/collection/charts/prometheus/values.yaml | 4 ---- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'vnfs') diff --git a/vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml b/vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml index f360d0df..ea2b81b6 100644 --- a/vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml +++ b/vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml @@ -21,11 +21,10 @@ items: {{- if .jobLabel }} jobLabel: {{ .jobLabel }} {{- end }} - {{- if .namespaceSelector }} namespaceSelector: -{{ toYaml .namespaceSelector | indent 8 }} - {{- end }} + matchNames: + - {{ $.Release.Namespace | quote }} selector: -{{ toYaml .selector | indent 8 }} +{{ toYaml .selector | indent 8 }} release: {{ $.Release.Name | quote }} {{- end }} {{- end }} diff --git a/vnfs/DAaaS/collection/charts/prometheus/values.yaml b/vnfs/DAaaS/collection/charts/prometheus/values.yaml index 47af00c2..1a5fc94c 100644 --- a/vnfs/DAaaS/collection/charts/prometheus/values.yaml +++ b/vnfs/DAaaS/collection/charts/prometheus/values.yaml @@ -9,10 +9,6 @@ prometheus: selector: matchLabels: app: collectd - release: "cp" - namespaceSelector: - matchNames: - - "edge1" endpoints: - port: collectd-prometheus interval: 10s -- cgit 1.2.3-korg