Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(monitor): add service metric monitor #22226

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

ioito
Copy link
Collaborator

@ioito ioito commented Mar 5, 2025

What this PR does / why we need it:

  • Smoke testing completed

If yes, write the release branches name in the below format and submit the related cherry-pick PR:

  • release/3.11

params.Set("limit", jsonutils.NewInt(20))
params.Set("brand", jsonutils.NewString("OneCloud"))
params.Set("scope", jsonutils.NewString("system"))
params.Set("status", jsonutils.NewString("running"))
Copy link
Member

Choose a reason for hiding this comment

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

加上 details=false

return influxdb.SendMetrics(urls, SYSTEM_METRIC_DATABASE, metrics, false)
}()
if err != nil {
log.Errorf("collect service metric error: %v", err)
}
params := jsonutils.NewDict()
Copy link
Member

Choose a reason for hiding this comment

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

建议此处用 options.BaseListOptions,不要构造json

@ioito ioito force-pushed the hotfix/qx-service-metric-monitor branch from e9a8a09 to 554b4ee Compare March 12, 2025 07:48
@ioito ioito merged commit a024d94 into yunionio:master Mar 12, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants