Skip to content

Commit

Permalink
Add a way to change the METRICS_WATCH_NAMESPACE which further restric… (
Browse files Browse the repository at this point in the history
kedacore#64)

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 <jiri.kremser@gmail.com>
  • Loading branch information
jkremser authored and Kedify Bot committed Dec 17, 2024
1 parent 8ea0434 commit 4ff34e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kedify-agent/templates/agent-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions kedify-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ff34e8

Please sign in to comment.