-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
✨Add metrics to machine and cluster controller #1736
Conversation
/hold |
efd75fc
to
661ce79
Compare
controllers/cluster_controller.go
Outdated
// TODO: [wfernandes] pass context here | ||
_, err := secret.Get(r.Client, c, secret.Kubeconfig) |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good first issue for v1a3
/hold cancel |
controllers/cluster_controller.go
Outdated
// TODO: [wfernandes] pass context here | ||
_, err := secret.Get(r.Client, c, secret.Kubeconfig) |
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.
This is a good first issue for v1a3
Signed-off-by: Warren Fernandes <[email protected]>
/milestone v0.3.0 |
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
/assign @detiber
for final review/lgtm
[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
Needs 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 [email protected]
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