aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2019-03-19 19:34:45 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-19 19:34:45 +0000
commit3c861dd4e53b43c94e60d28ec3699119966c6ceb (patch)
treebaeb0d516a89a89308ecdc99f1c839fbfc65529c /vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml
parenta1f055200ba8061417b820a4edf462a6084c1b68 (diff)
parent72ac32bf57b6f077a21fc040f0eef12df6d0ec11 (diff)
Merge "Remove hardcoded values from values.yaml"
Diffstat (limited to 'vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml')
-rw-r--r--vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml7
1 files changed, 3 insertions, 4 deletions
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 }}