-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to change the METRICS_WATCH_NAMESPACE which further restric… #64
Conversation
…t the list of namespaces where metrics are collected. Signed-off-by: Jirka Kremser <jiri.kremser@gmail.com>
@@ -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: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we consider adding {{ .Release.Namespace }}
by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, that's the plan, basically same logic as in keda upstream helm chart
{{- $namespaces := append (splitList "," .Values.agent.metricsWatchNamespace ) .Release.Namespace -}}
{{- range $namespaces }}
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blind ack
blind merge 🤠 |
#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>
#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>
#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>
#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>
#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>
#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>
note: comma must be escaped when passing the values using
--set
(if it's in the value file, normal unescaped comma works)