From e572d10757521a870f02c3524388de48f4418deb Mon Sep 17 00:00:00 2001 From: Lianhao Lu Date: Tue, 2 Jul 2019 15:54:05 +0800 Subject: [PATCH] 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 --- .../DAaaS/deploy/collection/charts/prometheus/templates/prometheus.yaml | 2 ++ vnfs/DAaaS/deploy/collection/charts/prometheus/values.yaml | 1 + 2 files changed, 3 insertions(+) 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: {} -- 2.16.6