-
Notifications
You must be signed in to change notification settings - Fork 47
metrics: add support for more metric types #74
Conversation
590f1e2
to
1ea39e9
Compare
@akshaysngupta the image build is failing. is |
dep ensure is hanging because you are missing hg. Run I found the error related to the build issue and working on resolving it. Stay tuned. |
Can you rebase? It will pull in a change that will resolve the failed build. |
0c38356
to
53595ae
Compare
/azp run |
No pipelines are associated with this pull request. |
@akshaysngupta it looks like the existing Queue Test is not returning the correct values and is getting zero for every request. I am guessing something isn't quite right in the logic to select the type of the Value. What is the metric and type you are running in your local instance? |
I am using metric of Average Type |
Could you share the ExternalMetric CRD you are using? |
53595ae
to
311b1f6
Compare
/azp run |
Commenter does not have sufficient privileges for PR 74 in repo Azure/azure-k8s-metrics-adapter |
/azp run |
No pipelines are associated with this pull request. |
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.
Thanks for the contribution! I left a few comments in the code. In addition it would be useful to add an e2e to cover the aggregation type. The easiest way to add this would probably use the already loaded Queue and an additional CRD to check a different aggregation type (maybe Max or Min?)
311b1f6
to
cc5658f
Compare
/azp run |
No pipelines are associated with this pull request. |
/azp run |
No pipelines are associated with this pull request. |
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.
Really close. Just a few extra checks in case there is bad data that comes back.
/azp run |
We are leveraging this project to get metrics for an azure resource onto k8s.
Adding support for more metric types to support our use case.