Skip to content

fix: KeyPerf collector should not export partner volumes - #4419

Open
rahulguptajss wants to merge 4 commits into
mainfrom
rg2-fix-mcc
Open

fix: KeyPerf collector should not export partner volumes#4419
rahulguptajss wants to merge 4 commits into
mainfrom
rg2-fix-mcc

Conversation

@rahulguptajss

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings August 20, 2026 17:10
@cla-bot cla-bot Bot added the cla-signed label Aug 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the KeyPerf volume collector to avoid exporting metrics for MetroCluster partner volumes by incorporating volume state into collection and using it to mark instances as non-exportable unless they are online.

Changes:

  • Added state as a collected label in KeyPerf volume YAML configs (and corresponding testdata config).
  • Updated the KeyPerf volume plugin to set IsExportable=false for volumes under SVMs ending in -mc unless state == "online".
  • Added a unit test covering MetroCluster -mc volumes for online/offline/missing-state behavior.

Reviewed changes

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

Show a summary per file
File Description
conf/keyperf/9.15.0/volume.yaml Collect state for volume instances/endpoints so the plugin can filter exportability.
conf/keyperf/9.11.1/volume.yaml Same state label addition for the 9.11.1 KeyPerf config variant.
conf/keyperf/9.10.0/volume.yaml Same state label addition for the 9.10.0 KeyPerf config variant.
cmd/collectors/keyperf/testdata/conf/keyperf/9.15.0/volume.yaml Updates test config to include state so unit tests reflect real collection.
cmd/collectors/keyperf/plugins/volume/volume.go Implements exportability filtering for -mc SVM volumes based on state.
cmd/collectors/keyperf/plugins/volume/volume_test.go Adds coverage ensuring -mc volumes are only exportable when online (and missing state is not exportable).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings August 20, 2026 17:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 6 out of 6 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 20, 2026 17:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 6 out of 6 changed files in this pull request and generated no new comments.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyPerf collector exports performance metrics for MetroCluster (-mc) volumes that belong to the partner cluster

2 participants