-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[code browser] measure all sessions vs errored sessions #12702
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
061a53c to
5864861
Compare
|
/werft run 👍 started the job as gitpod-build-filiptronicek-vscode-in-browser-12107.2 |
|
Thanks for looking at the PR, @andreafalzetti! Not quite sure what is the problem here. I assumed Grafana would be accessible the same way it was on #12222. @mustard-mh did you do any special config to get it to work 🤔? |
|
@andreafalzetti @filiptronicek You need to visit Prometheus, which forwarded port is |
components/supervisor/frontend/src/ide/ide-metrics-service-client.ts
Outdated
Show resolved
Hide resolved
5864861 to
5cbe872
Compare
5cbe872 to
7ee1dd9
Compare
7ee1dd9 to
f806270
Compare
| SupervisorFrontendClientTotal = "gitpod_supervisor_frontend_client_total", | ||
| SupervisorFrontendErrorTotal = "gitpod_supervisor_frontend_error_total" | ||
| SupervisorFrontendErrorTotal = "gitpod_supervisor_frontend_error_total", | ||
| SupervisorFrontendLoadTotal = "gitpod_vscode_web_load_total", |
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.
We introduced a new metric: gitpod_vscode_web_load_total for measuring the percentage of failed loads.
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.
gitpod/install/installer/pkg/components/ide-metrics/configmap.go
Lines 50 to 58 in bc47002
| Name: "gitpod_vscode_web_load_total", | |
| Help: "Total count of supervisor frontend client loading / errored windows", | |
| Labels: []config.LabelAllowList{ | |
| { | |
| Name: "status", | |
| AllowValues: []string{"loading", "failed"}, | |
| }, | |
| }, | |
| }, |
this metric can have two different types: loading and error.
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.
supervisor-frontend should be reverted, we should try to decouple metrics in VS Code Web workbench and here, and work on them separately. I think this PR should not have any changes in supervisor. cc @mustard-mh
1c325b9 to
bc47002
Compare
|
/werft run with-clean-slate 👍 started the job as gitpod-build-filiptronicek-vscode-in-browser-12107.8 |
bc47002 to
7fae1c5
Compare
d7afb80 to
df74f6b
Compare
|
I will revert debug commit and approve this PR and openvscode-server one gitpod-io/openvscode-server#428. cc @akosyakov |
|
@mustard-mh Can we add a new row to https://grafana.gitpod.io/d/oLzOteZ4z/vs-code-browser-overview?orgId=1 for |
df74f6b to
f791252
Compare
|
Could you help test this PR? @iQQBot |
| && cp /vscode-web/out/vs/gitpod/browser/workbench/callback.html /vscode-web/callback.html \ | ||
| && sed -i -e 's#static/##g' /vscode-web/index.html | ||
| && sed -i -e 's#static/##g' /vscode-web/index.html \ | ||
| && sed -i -e "s/{{VERSION}}/$CODE_COMMIT/g" /vscode-web/index.html |
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.
Could we include CODE_QUALITY here? like stable-commitHash or insider-commitHash ?
Will do it in follow PR |
ad1cb4f to
79171ad
Compare
Move remainder of IDE metrics to under OpenVSCode Server workbench Co-authored-by: Anton Kosyakov <anton@gitpod.io> Co-authored-by: mustard <mhqnwt@gmail.com>
79171ad to
92cb119
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.
92cb119 to
a11cdfb
Compare
|
Next step I think we can
|
|
/unhold |
|
Thank you @iQQBot |
| SupervisorFrontendClientTotal = "gitpod_supervisor_frontend_client_total", | ||
| SupervisorFrontendErrorTotal = "gitpod_supervisor_frontend_error_total" | ||
| SupervisorFrontendErrorTotal = "gitpod_supervisor_frontend_error_total", | ||
| SupervisorFrontendLoadTotal = "gitpod_vscode_web_load_total", |
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.
@mustard-mh I don't think supervisor frontend should care about it.









Description
This PR advances on the changes made in #12222 and contributes a new metric field:
gitpod_vscode_web_load_total, which will help in discovering how often (percentage-wise) errors happen in VS Code Browser, as described in #12107 (comment).Related Issue(s)
Relates #12107
Changes done in the VS Code Browser workbench: gitpod-io/openvscode-server#428.
The query would look something like this:
How to test
Do a little bit of trolling (throw errors in VS Code Browser)
Verify with Grafana
./dev/preview/portforward-monitoring-satellite.sh -c harvesterRelease Notes
Documentation
Werft options: