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

Always collect available metrics in top queries service #205

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

ansjcy
Copy link
Member

@ansjcy ansjcy commented Jan 24, 2025

Description

Currently we are not collecting metrics that are not enabled for top n queries, which causes certain measurements fields missing in local index sometimes. This is not a consistent behavior, idealy, when user configure "enabling/disabling top n queries by cpu", we should really just adding/removing the logic to push the records into the cpu metric heap, but whether the the top n queries are configured or not, we should always collect the metric.

Issues Resolved

#204

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Collaborator

@deshsidd deshsidd left a comment

Choose a reason for hiding this comment

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

LGTM. Good find!

@ansjcy ansjcy force-pushed the always-collect-metrics branch from 5d963c8 to 8fd8706 Compare January 24, 2025 01:18
@ansjcy ansjcy merged commit a52586a into opensearch-project:main Jan 24, 2025
12 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 24, 2025
Signed-off-by: Chenyang Ji <[email protected]>
(cherry picked from commit a52586a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
deshsidd pushed a commit that referenced this pull request Jan 24, 2025
(cherry picked from commit a52586a)

Signed-off-by: Chenyang Ji <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

2 participants