Skip to content
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

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

jkremser
Copy link
Member

@jkremser jkremser commented Nov 12, 2024

note: comma must be escaped when passing the values using --set (if it's in the value file, normal unescaped comma works)

helm template ./kedify-agent -nkeda \
           --set agent.apiKey=kfy_facefaceface424242d0f7e1963c7d542aee42424242424242424242424242420  \
           --set agent.orgId=42424242-42ab-42ab-42ab-424242424242 \
           --set agent.metricsWatchNamespace="a\,b\,c" | grep -A1 METRICS_WATCH_NAMESPACE
            - name: METRICS_WATCH_NAMESPACE
              value: "a,b,c"

jkremser and others added 2 commits November 12, 2024 11:07
…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: ""
Copy link
Member

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?

Copy link
Member Author

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 }}
  ...

Copy link

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blind ack

@jkremser jkremser merged commit 56b9f7d into main Nov 29, 2024
@jkremser jkremser deleted the configurable-metrics-watch-ns branch November 29, 2024 15:29
@jkremser
Copy link
Member Author

blind merge 🤠

jkremser added a commit that referenced this pull request Dec 5, 2024
#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>
jkremser added a commit that referenced this pull request Dec 17, 2024
#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>
jkremser added a commit that referenced this pull request Dec 25, 2024
#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>
jkremser added a commit that referenced this pull request Dec 27, 2024
#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>
wozniakjan pushed a commit that referenced this pull request Jan 2, 2025
#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>
jkremser added a commit that referenced this pull request Jan 9, 2025
#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants