-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Revert "Expose /v1/integrations/gateway/metrics for Trino Gateway" #27092
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
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis pull request reverts the previously added Trino Gateway metrics endpoint and removes the system CPU load metric from MemoryInfo, updating LocalMemoryManager and test code to align with the revised MemoryInfo API. Entity relationship diagram for updated MemoryInfo structureerDiagram
MEMORYINFO {
int availableProcessors
MemoryPoolInfo pool
}
MEMORYPOOLINFO {
string name
int size
}
MEMORYINFO ||--|| MEMORYPOOLINFO : contains
Class diagram for reverted MemoryInfo and LocalMemoryManager changesclassDiagram
class MemoryInfo {
- int availableProcessors
- MemoryPoolInfo pool
+ MemoryInfo(int availableProcessors, MemoryPoolInfo pool)
+ int getAvailableProcessors()
+ MemoryPoolInfo getPool()
+ String toString()
}
class LocalMemoryManager {
- Supplier<Integer> AVAILABLE_PROCESSORS
- NodeMemoryConfig config
- MemoryPool memoryPool
+ LocalMemoryManager(NodeMemoryConfig config)
+ MemoryInfo getInfo()
+ MemoryPool getMemoryPool()
}
LocalMemoryManager --> MemoryInfo
MemoryInfo --> MemoryPoolInfo
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
findepi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add sth like this to the cmt msg
"The endpoint was exposing cluster utilization metrics (memory, load), which are generally useful for observability and also for any other query routing logic. We should expose them in gateway-agnostic manner. Reverting now to unblock release."
This reverts commit 1ca42b4. The endpoint was exposing cluster utilization metrics (memory, load), which are generally useful for observability and also for any other query routing logic. We should expose them in gateway-agnostic manner. Reverting now to unblock release.
235a1cc to
22d3d3a
Compare
This reverts commit 1ca42b4.
We need to discuss how to approach exposing endpoints that are meant to be consumed by the external integrations.
Description
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:
Summary by Sourcery
Revert exposing the Trino Gateway metrics endpoint and remove associated system CPU load reporting from memory management
Enhancements:
Tests: