-
Notifications
You must be signed in to change notification settings - Fork 40.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
Instrument the Azure API calls for Prometheus monitoring #58204
Instrument the Azure API calls for Prometheus monitoring #58204
Conversation
/ok-to-test |
/lgtm |
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.
@cosmincojocar Seems all ListNextResults
interfaces are not instrumented, why not also add them?
@feiskyer That's right. It isn't obvious to me from where to read the One possibility is to add the resource group in the ListNextRresults method signatures. Do you have any other suggestions? |
I thought resource group is included in |
/retest |
@@ -0,0 +1,82 @@ | |||
/* | |||
Copyright 2017 The Kubernetes Authors. |
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.
2018
@@ -84,7 +84,7 @@ type VirtualMachineScaleSetsClient interface { | |||
CreateOrUpdate(resourceGroupName string, VMScaleSetName string, parameters compute.VirtualMachineScaleSet, cancel <-chan struct{}) (<-chan compute.VirtualMachineScaleSet, <-chan error) | |||
Get(resourceGroupName string, VMScaleSetName string) (result compute.VirtualMachineScaleSet, err error) | |||
List(resourceGroupName string) (result compute.VirtualMachineScaleSetListResult, err error) | |||
ListNextResults(lastResults compute.VirtualMachineScaleSetListResult) (result compute.VirtualMachineScaleSetListResult, err error) | |||
ListNextResults(resourceGroupName string, astResults compute.VirtualMachineScaleSetListResult) (result compute.VirtualMachineScaleSetListResult, err error) |
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.
lastResults
/lgtm |
/test pull-kubernetes-e2e-gce-device-plugin-gpu |
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.
/approve no-issue
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, cosmincojocar, feiskyer Associated issue requirement bypassed by: feiskyer The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
Quick question, what is the endpoint for having our prometheus stack scrape the cloud-provider metrics ? Is this done automatically but some kubernetes' internal? Thanks! |
FYI, I’m stil using the integrated cloud-provider and not the external cloud-provider-manager. So can we access the cloud-provider endpoint when running the integrated version in kubelet ? |
@cosmincojocar any idea ? |
@omerlh , I think you need to use the external cloud provider for access the /metrics, something that I'm not using since the azure cloud provider is still integrated within the upstream code |
Ok, I hope someone from sig azure will be able to answer that question... |
@omerlh You could get them from kube-controller-manager's metrics API. |
So I should added it the annonation so prometheus will scrape it? |
So I need to add an annotation to |
What this PR does / why we need it:
Instruments the Azure API calls for Prometheus monitoring.
Special notes for your reviewer:
This is version 2 based on the wrapped clients.
Release note:
cc @feiskyer @andyzhangx @jdumars @khenidak