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

Fix: GCP pubsub / cloud tasks metric queries for metric scoped projects #5258

Merged

Conversation

DP19
Copy link
Contributor

@DP19 DP19 commented Dec 6, 2023

Adding resource.labels.project_id to filter for metrics client queries in gcp. If a project is using metrics scoping and is also a project that contains pub/sub or cloud tasks; looking at metrics in that project will show data from scoped projects as well. Filtering this down to the project we're querying in resolves the issue

Checklist

Fixes #5256

DP19 added 2 commits December 5, 2023 21:22
Signed-off-by: David Pait <david.pait@pendo.io>
Signed-off-by: David Pait <david.pait@pendo.io>
@DP19 DP19 requested a review from a team as a code owner December 6, 2023 02:31
Copy link

github-actions bot commented Dec 6, 2023

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: David Pait <david.pait@pendo.io>
@JorTurFer
Copy link
Member

JorTurFer commented Dec 6, 2023

/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 the fix ❤️

@JorTurFer JorTurFer enabled auto-merge (squash) December 6, 2023 21:48
@JorTurFer JorTurFer merged commit 9700b8f into kedacore:main Dec 6, 2023
19 checks passed
toniiiik pushed a commit to toniiiik/keda that referenced this pull request Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

GCP pubsub scaler not working in projects with shared metrics scopes
2 participants