-
Notifications
You must be signed in to change notification settings - Fork 24
add prometheus metrics for DRA and NRI functions #217
Conversation
gauravkghildiyal
left a comment
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.
Still pending review of other stuff, but the general direction I'd recommend us to go here is that we have public wrapper function which handles tasks like metrics and error logging, while an internal function focuses solely on the core business logic. This separation ensures metrics are captured consistently and makes the code more readable and maintainable over time. For example, PrepareResourceClaims() could call an internal prepareResourceClaims().
5907f25 to
cbf850e
Compare
gauravkghildiyal
left a comment
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.
Just a minor suggestion, looking good. Thanks @aman0408
cbf850e to
4e2b864
Compare
gauravkghildiyal
left a comment
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!
Adds metrics for DRA and NRI functions - latency and success/failure as discussed in #90