Skip to content

This PR is to add comments to GetFuseMetricsScrapeTarget in pkg/ddc/base/runtime.go.#5988

Open
Summitnju wants to merge 2 commits into
fluid-cloudnative:masterfrom
Summitnju:add-comments-get-fuse-metrics-scrape-target
Open

This PR is to add comments to GetFuseMetricsScrapeTarget in pkg/ddc/base/runtime.go.#5988
Summitnju wants to merge 2 commits into
fluid-cloudnative:masterfrom
Summitnju:add-comments-get-fuse-metrics-scrape-target

Conversation

@Summitnju

Copy link
Copy Markdown

I. Describe what this PR does

Add comments to GetFuseMetricsScrapeTarget in pkg/ddc/base/runtime.go.

II. Does this pull request fix one issue?

fixes #5987

III. Special notes for reviews

None.

Copilot AI review requested due to automatic review settings June 13, 2026 06:32
@fluid-e2e-bot

fluid-e2e-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zwwhdls for approval by writing /assign @zwwhdls in a comment. For more information see:The Kubernetes 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

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

Note

Copilot was unable to run its full agentic suite in this review.

Adds documentation for RuntimeInfo.GetFuseMetricsScrapeTarget() to clarify what the method returns and how to interpret its result.

Changes:

  • Documented the purpose and semantics of GetFuseMetricsScrapeTarget()

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

Comment thread pkg/ddc/base/runtime.go
Comment on lines +313 to 317
// GetFuseMetricsScrapeTarget returns the configured metrics scrape target for the Fuse client.
// The returned selector indicates which mount modes should expose Fuse metrics for scraping.
func (info *RuntimeInfo) GetFuseMetricsScrapeTarget() mountModeSelector {
return info.fuse.MetricsScrapeTarget
}
@fluid-e2e-bot

fluid-e2e-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown

Hi @Summitnju. Thanks for your PR.

I'm waiting for a fluid-cloudnative 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/test-infra repository.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request adds documentation comments to the GetFuseMetricsScrapeTarget method in pkg/ddc/base/runtime.go to clarify its purpose and return value. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread pkg/ddc/base/runtime.go
Signed-off-by: Summitnju <2745814885@qq.com>
@sonarqubecloud

Copy link
Copy Markdown

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.

Add comments to GetFuseMetricsScrapeTarget in pkg/ddc/base/runtime.go.

3 participants