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

Extend Prometheus Scaler to populate the namespace field by reference #6048

Open
ZeidH opened this issue Aug 7, 2024 · 0 comments
Open

Extend Prometheus Scaler to populate the namespace field by reference #6048

ZeidH opened this issue Aug 7, 2024 · 0 comments
Labels
feature-request All issues for new features that have not been committed to needs-discussion

Comments

@ZeidH
Copy link

ZeidH commented Aug 7, 2024

Proposal

I would like to be able to reference the namespace that the ScaledJob or ScaledObject is currently deployed in with the Prometheus Scaler's namespace field.

So that instead of:

triggers:
- type: prometheus
  metadata:
    ...
    namespace: example-namespace  # for namespaced queries, eg. Thanos

Do something more dynamic like:

    ...
    namespace: 
      fieldRef: metadata.namespace

Use-Case

For us the namespace field is required as we use thanos-querier as our metric source, similar to many OpenShift users.

Having the namespace field referenced would save us a lot of hassle with kustomize replacements and post-sync jobs to manage that namespace field automatically.

Is this a feature you are interested in implementing yourself?

Maybe

Anything else?

No response

@ZeidH ZeidH added feature-request All issues for new features that have not been committed to needs-discussion labels Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request All issues for new features that have not been committed to needs-discussion
Projects
Status: To Triage
Development

No branches or pull requests

1 participant