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(scaler): make GCP PubSub more flexible #4408

Merged

Conversation

ken8203
Copy link
Contributor

@ken8203 ken8203 commented Mar 27, 2023

To make the GCP PubSub scaler more flexible, simply convert the mode from camel case to snake case, e.g. PullAckRequestCount to pull_ack_request_count, and concatenate it with pubsub.googleapis.com/subscription/, then we get the full metric name.

Relates to #4243

Checklist

Ref

https://cloud.google.com/monitoring/api/metrics_gcp#gcp-pubsub

@ken8203 ken8203 force-pushed the feature/flexibler-gcp-pubsub-scaler branch 4 times, most recently from a59ffaa to fd62c8d Compare March 27, 2023 08:45
@ken8203 ken8203 force-pushed the feature/flexibler-gcp-pubsub-scaler branch 2 times, most recently from 336b6b6 to bf36042 Compare March 29, 2023 09:32
@ken8203 ken8203 marked this pull request as ready for review March 29, 2023 09:32
@ken8203 ken8203 requested a review from a team as a code owner March 29, 2023 09:32
Signed-off-by: Jay Chung <ken8203@gmail.com>
@ken8203 ken8203 force-pushed the feature/flexibler-gcp-pubsub-scaler branch from bf36042 to bae8177 Compare March 29, 2023 10:01
@JorTurFer
Copy link
Member

I have checked the PR and I'm not 100% sure, does it introduce a breaking change? I don't think so, but just to be 100% :)

@JorTurFer
Copy link
Member

JorTurFer commented Mar 29, 2023

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

@ken8203
Copy link
Contributor Author

ken8203 commented Mar 30, 2023

I have checked the PR and I'm not 100% sure, does it introduce a breaking change? I don't think so, but just to be 100% :)

No, there is no breaking change here. :D

@JorTurFer JorTurFer merged commit 9c46261 into kedacore:main Apr 3, 2023
21 checks passed
@JorTurFer
Copy link
Member

Thanks for the improvement!

@ken8203 ken8203 deleted the feature/flexibler-gcp-pubsub-scaler branch April 4, 2023 10:58
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.

None yet

2 participants