Skip to content

controller: Track EvaluationError metric in NodeReconciler path#242

Closed
Shreya2005-2005 wants to merge 1 commit into
kubernetes-sigs:mainfrom
Shreya2005-2005:fix/node-reconciler-missing-metrics
Closed

controller: Track EvaluationError metric in NodeReconciler path#242
Shreya2005-2005 wants to merge 1 commit into
kubernetes-sigs:mainfrom
Shreya2005-2005:fix/node-reconciler-missing-metrics

Conversation

@Shreya2005-2005
Copy link
Copy Markdown
Contributor

Description

processNodeAgainstAllRules called recordNodeFailure on evaluation
errors but did not increment metrics.Failures counter, unlike
processAllNodesForRule which correctly does both. This caused failures
from node-triggered reconciliation to be silently missing from
node_readiness_failures_total Prometheus metric.

Related Issue

Fixes #241

Type of Change

/kind bug

Testing

  • go build ./... passes
  • make lint passes (0 issues)
  • go test ./internal/webhook/... passes

Checklist

  • make test passes (webhook)
  • make lint passes

Does this PR introduce a user-facing change?

Fixed missing EvaluationError metric increment in NodeReconciler path.
Failures from node-triggered reconciliation are now correctly counted
in node_readiness_failures_total.

Signed-off-by: Shreya2005-2005 <bhakatmistu2005@gmail.com>
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label May 12, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for node-readiness-controller canceled.

Name Link
🔨 Latest commit bfaca2f
🔍 Latest deploy log https://app.netlify.com/projects/node-readiness-controller/deploys/6a0395a29806410008c251f5

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Shreya2005-2005
Once this PR has been reviewed and has the lgtm label, please assign tallclair for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 12, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

PR needs rebase.

Details

Instructions 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.

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @Shreya2005-2005. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 12, 2026
@ajaysundark
Copy link
Copy Markdown
Contributor

Duplicate to #219

@ajaysundark
Copy link
Copy Markdown
Contributor

/close

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@ajaysundark: Closed this PR.

Details

In response to this:

/close

Instructions 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: EvaluationError failures from NodeReconciler not tracked in metrics

3 participants