✨Add metrics to machine and cluster controller#1736
✨Add metrics to machine and cluster controller#1736k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
Conversation
|
/hold |
efd75fc to
661ce79
Compare
| // TODO: [wfernandes] pass context here | ||
| _, err := secret.Get(r.Client, c, secret.Kubeconfig) |
There was a problem hiding this comment.
I noticed that secret.Get is using context.TODO instead of being passed the ctx which in most cases is available. I thought that I could make a separate refactor PR for that.
There was a problem hiding this comment.
This is a good first issue for v1a3
|
/hold cancel |
| // TODO: [wfernandes] pass context here | ||
| _, err := secret.Get(r.Client, c, secret.Kubeconfig) |
There was a problem hiding this comment.
This is a good first issue for v1a3
Signed-off-by: Warren Fernandes <wfernandes@pivotal.io>
|
/milestone v0.3.0 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri, wfernandes The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
In general lgtm, but should we close #1477 with the merging of this PR? Some of the metrics it talks about are related to creation/deletion of resources. Should we leave the issue open until we add additional metrics for the child resources we are creating as well? |
|
I'd leave it open until we have a wider metrics plan |
|
Updated the description to not close the issue. |
|
@wfernandes Can you add a note in https://github.com/kubernetes-sigs/cluster-api/blob/master/docs/book/src/providers/v1alpha2-to-v1alpha3.md regarding the metrics that we now support? |
|
@vincepri I will definitely do that. I was going to ask in the channel where to document these metrics. Thanks for the tip. |
Signed-off-by: Warren Fernandes wfernandes@pivotal.io
What this PR does / why we need it:
This PR adds prometheus metrics to the machine and cluster controller.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Related to #1477