From e41e91cb22fef0b140f16fd72e2b07ed81fa410f Mon Sep 17 00:00:00 2001 From: Jirka Kremser <535866+jkremser@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:29:48 +0100 Subject: [PATCH] =?UTF-8?q?Add=20a=20way=20to=20change=20the=20METRICS=5FW?= =?UTF-8?q?ATCH=5FNAMESPACE=20which=20further=20restric=E2=80=A6=20(#64)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a way to change the METRICS_WATCH_NAMESPACE which further restrict the list of namespaces where metrics are collected. Signed-off-by: Jirka Kremser --- kedify-agent/templates/agent-deployment.yaml | 2 ++ kedify-agent/values.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/kedify-agent/templates/agent-deployment.yaml b/kedify-agent/templates/agent-deployment.yaml index e227648e..a0022a2a 100644 --- a/kedify-agent/templates/agent-deployment.yaml +++ b/kedify-agent/templates/agent-deployment.yaml @@ -66,6 +66,8 @@ spec: - name: PRP_REQUIRES_ANNOTATED_PODS value: {{ .Values.agent.features.prpRequiresAnnotatedPods | quote }} {{- end }} + - name: METRICS_WATCH_NAMESPACE + value: {{ .Values.agent.metricsWatchNamespace | quote }} - name: RBAC_READ_NODES value: {{ .Values.agent.rbac.readNodes | quote }} - name: RBAC_READ_PODS diff --git a/kedify-agent/values.yaml b/kedify-agent/values.yaml index b491e337..88ee6ae4 100644 --- a/kedify-agent/values.yaml +++ b/kedify-agent/values.yaml @@ -31,6 +31,9 @@ agent: pullPolicy: IfNotPresent imagePullSecrets: [] + # comma-separated list of namespaces where pod utilization metrics should be collected + # or if unset denotes all namespaces, the collecting itself needs to be also enabled by KubernetesMetricsScraping flag + metricsWatchNamespace: "" # if anything else than 'false', the log will not print the ascii logo noBanner: false # if anything else than 'false', the log will not contain colors