Skip to content

Skip suspended hosts when fetching deployment metrics#36045

Open
bjormel wants to merge 1 commit intomasterfrom
bjormel/skip-suspended-hosts-in-deployment-metrics
Open

Skip suspended hosts when fetching deployment metrics#36045
bjormel wants to merge 1 commit intomasterfrom
bjormel/skip-suspended-hosts-in-deployment-metrics

Conversation

@bjormel
Copy link
Member

@bjormel bjormel commented Feb 26, 2026

Summary

  • Adds NodeSuspensionProvider interface to config-provisioning for querying suspended hosts per application
  • Wires it into DeploymentMetricsRetriever so suspended nodes are excluded from metrics collection
  • Injects the provider into ApplicationRepository via DI, defaulting to a no-op implementation

Test plan

  • DeploymentMetricsRetrieverTest covers the filtering behaviour

🤖 Generated with Claude Code

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces the ability to exclude suspended hosts from deployment metrics collection by adding a suspension lookup interface and wiring it into metrics retrieval in configserver.

Changes:

  • Add NodeSuspensionProvider interface (with a default empty implementation) for querying suspended hostnames per application.
  • Update DeploymentMetricsRetriever to filter out suspended hostnames when building the metrics target host list.
  • Wire DeploymentMetricsRetriever through ApplicationRepository so deployment metrics requests use the injected suspension provider (intended).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
configserver/src/test/java/com/yahoo/vespa/config/server/metrics/DeploymentMetricsRetrieverTest.java Adds a unit test asserting suspended hosts are filtered out of metrics retrieval.
configserver/src/main/java/com/yahoo/vespa/config/server/metrics/DeploymentMetricsRetriever.java Fetches suspended hostnames via NodeSuspensionProvider and filters them from the host list used for metrics.
configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java Adds DI plumbing for a shared DeploymentMetricsRetriever instance (currently miswired).
config-provisioning/src/main/java/com/yahoo/config/provision/NodeSuspensionProvider.java Introduces the new suspension provider API with a no-op default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bjormel bjormel force-pushed the bjormel/skip-suspended-hosts-in-deployment-metrics branch from f5b7d7d to 0c6ce07 Compare February 26, 2026 18:27
@bjormel bjormel requested a review from Copilot February 26, 2026 18:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bjormel bjormel force-pushed the bjormel/skip-suspended-hosts-in-deployment-metrics branch 2 times, most recently from 89f1935 to 914e2a5 Compare February 27, 2026 07:53
@bjormel bjormel requested a review from Copilot February 27, 2026 07:59
@bjormel bjormel force-pushed the bjormel/skip-suspended-hosts-in-deployment-metrics branch from 914e2a5 to c7a9489 Compare February 27, 2026 07:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bjormel bjormel force-pushed the bjormel/skip-suspended-hosts-in-deployment-metrics branch 2 times, most recently from 133546a to ff3ff8d Compare February 27, 2026 14:43
Adds NodeSuspensionProvider interface to config-provisioning and wires it
into DeploymentMetricsRetriever so suspended nodes are excluded from
metrics collection. ApplicationRepository injects the provider via DI.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@bjormel bjormel force-pushed the bjormel/skip-suspended-hosts-in-deployment-metrics branch from ff3ff8d to 4d932b5 Compare February 27, 2026 15:11
@bjormel bjormel requested a review from Copilot February 27, 2026 15:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants