aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/collection/charts/prometheus/templates
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/DAaaS/collection/charts/prometheus/templates')
-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 }}