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

feat(gcp-stackdriver): handling value if no timeseries is return #5345

Merged
merged 4 commits into from
Jan 3, 2024

Conversation

lindmin
Copy link
Contributor

@lindmin lindmin commented Jan 3, 2024

Provide a description of what has been changed

Context: it's pretty common to see metric that have no value during some period that can be interpretate by 0.

So this pulling request adding an optional metadata valueIfNull. This value (if not empty) that will be used if there is no timeseries return by the gcp monitoring query.

Checklist

Fixes #

Relates to #
kedacore/keda-docs#1285

Signed-off-by: VAN KELST Baptiste <baptistevk@gmail.com>
@lindmin lindmin requested a review from a team as a code owner January 3, 2024 14:25
Copy link

github-actions bot commented Jan 3, 2024

Thank you for your contribution! 🙏 We will review your PR as soon as possible.

While you are waiting, make sure to:

Learn more about:

Signed-off-by: VAN KELST Baptiste <baptistevk@gmail.com>
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

Nice improvement!
Could you update the change log (you can link the PR if there isn't any issue tracking this)? It's an interesting and useful feature to reflect on it.

pkg/scalers/gcp_stackdriver_scaler.go Outdated Show resolved Hide resolved
@JorTurFer
Copy link
Member

JorTurFer commented Jan 3, 2024

/run-e2e gcp
Update: You can check the progress here

Signed-off-by: VAN KELST Baptiste <baptistevk@gmail.com>
CHANGELOG.md Show resolved Hide resolved
Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: lindmin <baptistevk@gmail.com>
@JorTurFer
Copy link
Member

JorTurFer commented Jan 3, 2024

/run-e2e gcp
Update: You can check the progress here

Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for your contribution!

@JorTurFer JorTurFer merged commit f242e8a into kedacore:main Jan 3, 2024
19 checks passed
toniiiik pushed a commit to toniiiik/keda that referenced this pull request Jan 15, 2024
…acore#5345)

* feat(gcp-stackdriver): handling value if no timeseries is return

Signed-off-by: VAN KELST Baptiste <baptistevk@gmail.com>

* fix bad space

Signed-off-by: VAN KELST Baptiste <baptistevk@gmail.com>

* update changelog

Signed-off-by: VAN KELST Baptiste <baptistevk@gmail.com>

* Update pkg/scalers/gcp_stackdriver_scaler.go

Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: lindmin <baptistevk@gmail.com>

---------

Signed-off-by: VAN KELST Baptiste <baptistevk@gmail.com>
Signed-off-by: lindmin <baptistevk@gmail.com>
Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: anton.lysina <alysina@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