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
feat: expose metrics about the operator #214
Conversation
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.
license-eye has totally checked 112 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
111 | 1 | 0 | 0 |
Click to see the invalid file list
- pkg/metrics/metrics.go
Codecov Report
@@ Coverage Diff @@
## main #214 +/- ##
==========================================
+ Coverage 81.43% 81.86% +0.42%
==========================================
Files 34 36 +2
Lines 3022 3115 +93
==========================================
+ Hits 2461 2550 +89
- Misses 510 511 +1
- Partials 51 54 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
I am currently able to expose the metrics on
|
Generally, the metrics are what we wanted but I think we'd better:
I'll detail in #123 later. |
I don't know what happened, mergify just closed the PR? 🤔 Anyway, I reopened it. |
Sorry, I didn't make it consistent. Actually
Sounds good, but how 🤔 ? I don't think we could achieve that by blocking the thread. The controller uses a worker pool and if we block too many, the others might not be able to run anymore. |
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.
license-eye has totally checked 115 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
114 | 1 | 0 | 0 |
Click to see the invalid file list
- pkg/utils/types.go
I opened this PR. Let's discuss it there. |
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.
Generally LGTM! Great work! Thanks for your great effort!
I left some comments and please fix the issues listed before merging.
request reconcile.Request, | ||
gvk schema.GroupVersionKind, | ||
ctx context.Context, | ||
reconcileStartTS time.Time) reconcile.Result { |
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 think we don't need the return value here anymore since it is not used. Shall we remove it?
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.
True. We have to change the res *reconcile.Request
though. Let me fix that.
Co-authored-by: ArkBriar <arkbriar@users.noreply.github.com>
I also do not know :/ |
What's changed and what's your intention?
WORK IN PROGRESS! DO NOT MERGE!
Implementing feature request from Issue 123
Checklist
Refer to a related PR or issue link (optional)