-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Expose prometheus metrics for ScaledJob resources #4913
Conversation
Thank you for your contribution! 🙏 We will review your PR as soon as possible.
While you are waiting, make sure to:
Learn more about: |
a3fdad1
to
dddc7e5
Compare
Hi @JorTurFer The previous PR was broken, so I opened this new PR. Please take a look at this again. Thanks. |
0fa8998
to
6d91b25
Compare
7cc41fc
to
32d5ba0
Compare
a24d627
to
84c81dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add e2e test for this feature? You can see existing tests for Prom metrics for ScaledObjects: https://github.com/kedacore/keda/blob/main/tests/sequential/prometheus_metrics/prometheus_metrics_test.go
Hi @zroubalik I will update it together, once the above discussion is done. |
@yoongon thanks, just FYI we plan to do release tomorrow (Wednesday) |
07c254e
to
a431b42
Compare
Hi @zroubalik BTW, there are some change between this PR and master, I am rebasing it. Thanks |
091abcd
to
f225e4f
Compare
af4e86e
to
aa5d56c
Compare
@zroubalik Thanks for checking. I should have known this one. I closed that PR. |
I'm deploying the code into my cluster, I'll give you some feedback about the problem soon |
You didn't register the metric in Prometheus server: That's why now it's not available |
You probably need to add also a metric record for the jobs here: keda/pkg/scaling/scale_handler.go Lines 821 to 822 in 6c1a67d
You can do it adding the line |
f3bd3ce
to
d9d0f15
Compare
Signed-off-by: Yoon Park <[email protected]>
Signed-off-by: Yoon Park <[email protected]>
Signed-off-by: Yoon Park <[email protected]>
Signed-off-by: Yoon Park <[email protected]>
Signed-off-by: Yoon Park <[email protected]>
d9d0f15
to
ce7cce6
Compare
Signed-off-by: Yoon Park <[email protected]>
/run-e2e sequential |
@JorTurFer |
Signed-off-by: Yoon Park <[email protected]>
Signed-off-by: Yoon Park <[email protected]>
/run-e2e sequential |
Signed-off-by: Yoon Park <[email protected]>
Some e2e errors appear to be related with |
/run-e2e sequential |
Looks like final error on e2e.
https://github.com//pull/4913/commits/75476df9115d6071234c970e904722577a9460c6
I think this commit will fix it. I must have missed it during the rebase. |
8cc29a9
to
ececdef
Compare
Signed-off-by: Yoon Park <[email protected]>
ececdef
to
75476df
Compare
Signed-off-by: Yoon Park <[email protected]>
/run-e2e sequential |
Provide a description of what has been changed
Checklist
Fixes #4798
Relates to kedacore/keda-docs#1263