-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(supervisor): add resource status severity #12157
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
eb3399b
to
802631f
Compare
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.
To be honest I don't see the benefit of this change, APIs should provide the basic info/data and users of the API can use/interpret it freely. Even though it seems repetitive to map from values and threshold it's fine and the code is really simple.
I also see you are doing a mapping either way in GitpodMetricProvider.kt
it's the same in the end. 🤔
yeah I see that but that's more UI related so the API shouldn't be responsible of that. Anyway if everybody else aproves just ignore my review 😄 |
It's important that everyone feels that we ship meaningful stuff :) This is a suggestion coming from @akosyakov, I found it valuable and we agred to work on it this week but it's important to challenge ideas so let's have a discussion with the other team members and let's take a decision. I look forward to get feedback from @felladrin, @iQQBot, @mustard-mh, @loujaybee, @akosyakov :) ➡️ I don't mind closing this PR if we, as a team, decide that we want to keep the threshold values in each client instead of a single place (supervisor). |
The main motivation is to having one place to control thresholds, not updating each client if we figure out that danger should .9 not .95. |
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.
it works as advertized, but we don't compute it in supervisor in all branches, see https://github.com/gitpod-io/gitpod/pull/12157/files#r947179792
/hold
802631f
to
158c194
Compare
/unhold |
Description
status.proto
with ResourceStatus severity to remove the duplicated severity calculation from each clientgp-cli
andjetbrains backend-plugin
to consume the new severity propertyRelated Issue(s)
Fixes #12075
How to test
gp top
and JB backend control center, see the cpu/memory thresholds change color to WARN/DANGERRelease Notes
Documentation
Werft options: