From: Lianhao Lu Date: Tue, 2 Jul 2019 07:54:05 +0000 (+0800) Subject: Added resource support for DAaaS prometheus X-Git-Tag: 1.5.0~51 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=demo.git;a=commitdiff_plain;h=e572d10757521a870f02c3524388de48f4418deb Added resource support for DAaaS prometheus Added the day-0 config for DAaaS prometheus resource limits/requests. Change-Id: I017dcd5259c4616c2940bd6fbefdf0fd72092643 Issue-ID: ONAPARC-366 Signed-off-by: Lianhao Lu --- diff --git a/vnfs/DAaaS/deploy/collection/charts/prometheus/templates/prometheus.yaml b/vnfs/DAaaS/deploy/collection/charts/prometheus/templates/prometheus.yaml index 27c97d10..862e8650 100644 --- a/vnfs/DAaaS/deploy/collection/charts/prometheus/templates/prometheus.yaml +++ b/vnfs/DAaaS/deploy/collection/charts/prometheus/templates/prometheus.yaml @@ -15,6 +15,8 @@ spec: serviceMonitorNamespaceSelector: matchNames: - {{ .Release.Namespace | quote }} + resources: +{{ toYaml .Values.prometheus.resources | indent 4 }} # TODO: Templatizing multiple remote read/write. # Especially Kafka adapater. diff --git a/vnfs/DAaaS/deploy/collection/charts/prometheus/values.yaml b/vnfs/DAaaS/deploy/collection/charts/prometheus/values.yaml index f0c11921..b3e685c5 100644 --- a/vnfs/DAaaS/deploy/collection/charts/prometheus/values.yaml +++ b/vnfs/DAaaS/deploy/collection/charts/prometheus/values.yaml @@ -38,6 +38,7 @@ prometheus: interval: 10s path: /metrics + resources: {} service: annotations: {} labels: {}