feat: add metrics for pkg/runtime#1053
feat: add metrics for pkg/runtime#1053NicholasBlaskey wants to merge 1 commit intokubernetes-sigs:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: NicholasBlaskey The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @NicholasBlaskey. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
4c4f5a1 to
9c5693a
Compare
pkg/runtime/eval.go
Outdated
|
|
||
| // evalExpression wraps expression evaluation with metrics tracking. | ||
| func evalExpression(expr *krocel.Expression, ctx map[string]any) (any, error) { | ||
| startTime := time.Now() |
There was a problem hiding this comment.
can you instead track this in krocel.Expression? Whats the reason for a separate function?
There was a problem hiding this comment.
Added a separate function to make it easier to add metrics
However, moved this tracking to krocel.Expression
9c5693a to
4f4327d
Compare
Add metrics to track runtime operations during reconciliation: - runtime_creation_total - runtime_creation_duration_seconds - runtime_node_eval_total - runtime_node_eval_duration_seconds - runtime_node_eval_errors_total - runtime_node_ignored_check_total - runtime_node_ignored_total - runtime_node_ready_check_total - runtime_node_not_ready_total - runtime_collection_size - cel_expr_eval_total - cel_expr_eval_duration_seconds
4f4327d to
b5da105
Compare
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
Add metrics to track runtime operations during reconciliation:
Examples