Skip to content

Commit

Permalink
[code browser]: Measure all sessions vs errored sessions
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Kosyakov <anton@gitpod.io>
  • Loading branch information
filiptronicek and akosyakov committed Sep 11, 2022
1 parent 4b4e1d5 commit 7fae1c5
Show file tree
Hide file tree
Showing 12 changed files with 148 additions and 11 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defaultArgs:
jbMarketplacePublishTrigger: "false"
publishToJBMarketplace: true
localAppVersion: unknown
codeCommit: 06783e74552ddefd74c7e02cdcce19054b294469
codeCommit: 1f461720ba4ff9d860c6cd6650371fa9586d4770
codeQuality: stable
intellijDownloadUrl: "https://download.jetbrains.com/idea/ideaIU-2022.2.1.tar.gz"
golandDownloadUrl: "https://download.jetbrains.com/go/goland-2022.2.2.tar.gz"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { serverUrl } from '../shared/urls';

export enum MetricsName {
SupervisorFrontendClientTotal = "gitpod_supervisor_frontend_client_total",
SupervisorFrontendErrorTotal = "gitpod_supervisor_frontend_error_total"
SupervisorFrontendErrorTotal = "gitpod_supervisor_frontend_error_total",
SupervisorFrontendLoadTotal = "gitpod_vscode_web_load_total",
}

const MetricsUrl = serverUrl.asIDEMetrics().toString();
Expand Down
16 changes: 15 additions & 1 deletion install/installer/cmd/testdata/render/aws-setup/output.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3165,6 +3165,20 @@ data:
}
]
},
{
"name": "gitpod_vscode_web_load_total",
"help": "Total count of supervisor frontend client loading / errored windows",
"labels": [
{
"name": "status",
"allowValues": [
"loading",
"failed"
],
"defaultValue": ""
}
]
},
{
"name": "gitpod_supervisor_frontend_client_total",
"help": "Total count of supervisor frontend client",
Expand Down Expand Up @@ -7431,7 +7445,7 @@ spec:
template:
metadata:
annotations:
gitpod.io/checksum_config: 5f647d019f026f04a85e04ad8e695083db2a70f97ee7199143859879d5d40ebe
gitpod.io/checksum_config: 99857889bb5dd2fe08efbb38fa510956566ce067cf2d1e1e945bd024cf4c6bb3
creationTimestamp: null
labels:
app: gitpod
Expand Down
16 changes: 15 additions & 1 deletion install/installer/cmd/testdata/render/azure-setup/output.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3083,6 +3083,20 @@ data:
}
]
},
{
"name": "gitpod_vscode_web_load_total",
"help": "Total count of supervisor frontend client loading / errored windows",
"labels": [
{
"name": "status",
"allowValues": [
"loading",
"failed"
],
"defaultValue": ""
}
]
},
{
"name": "gitpod_supervisor_frontend_client_total",
"help": "Total count of supervisor frontend client",
Expand Down Expand Up @@ -7265,7 +7279,7 @@ spec:
template:
metadata:
annotations:
gitpod.io/checksum_config: 5f647d019f026f04a85e04ad8e695083db2a70f97ee7199143859879d5d40ebe
gitpod.io/checksum_config: 99857889bb5dd2fe08efbb38fa510956566ce067cf2d1e1e945bd024cf4c6bb3
creationTimestamp: null
labels:
app: gitpod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3865,6 +3865,20 @@ data:
}
]
},
{
"name": "gitpod_vscode_web_load_total",
"help": "Total count of supervisor frontend client loading / errored windows",
"labels": [
{
"name": "status",
"allowValues": [
"loading",
"failed"
],
"defaultValue": ""
}
]
},
{
"name": "gitpod_supervisor_frontend_client_total",
"help": "Total count of supervisor frontend client",
Expand Down Expand Up @@ -8658,7 +8672,7 @@ spec:
metadata:
annotations:
gitpod.io: hello
gitpod.io/checksum_config: 8beda82ff6c689641e3e3d74cfa333942daf49ba5617133a5c6ec21a44408f22
gitpod.io/checksum_config: 8aa9b1bcf89417e5ff2353d33891b50ff53411c4255430c3ed4329d7c707739f
hello: world
creationTimestamp: null
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3224,6 +3224,20 @@ data:
}
]
},
{
"name": "gitpod_vscode_web_load_total",
"help": "Total count of supervisor frontend client loading / errored windows",
"labels": [
{
"name": "status",
"allowValues": [
"loading",
"failed"
],
"defaultValue": ""
}
]
},
{
"name": "gitpod_supervisor_frontend_client_total",
"help": "Total count of supervisor frontend client",
Expand Down Expand Up @@ -7706,7 +7720,7 @@ spec:
template:
metadata:
annotations:
gitpod.io/checksum_config: 5f647d019f026f04a85e04ad8e695083db2a70f97ee7199143859879d5d40ebe
gitpod.io/checksum_config: 99857889bb5dd2fe08efbb38fa510956566ce067cf2d1e1e945bd024cf4c6bb3
creationTimestamp: null
labels:
app: gitpod
Expand Down
16 changes: 15 additions & 1 deletion install/installer/cmd/testdata/render/gcp-setup/output.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3054,6 +3054,20 @@ data:
}
]
},
{
"name": "gitpod_vscode_web_load_total",
"help": "Total count of supervisor frontend client loading / errored windows",
"labels": [
{
"name": "status",
"allowValues": [
"loading",
"failed"
],
"defaultValue": ""
}
]
},
{
"name": "gitpod_supervisor_frontend_client_total",
"help": "Total count of supervisor frontend client",
Expand Down Expand Up @@ -7320,7 +7334,7 @@ spec:
template:
metadata:
annotations:
gitpod.io/checksum_config: 5f647d019f026f04a85e04ad8e695083db2a70f97ee7199143859879d5d40ebe
gitpod.io/checksum_config: 99857889bb5dd2fe08efbb38fa510956566ce067cf2d1e1e945bd024cf4c6bb3
creationTimestamp: null
labels:
app: gitpod
Expand Down
16 changes: 15 additions & 1 deletion install/installer/cmd/testdata/render/minimal/output.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3390,6 +3390,20 @@ data:
}
]
},
{
"name": "gitpod_vscode_web_load_total",
"help": "Total count of supervisor frontend client loading / errored windows",
"labels": [
{
"name": "status",
"allowValues": [
"loading",
"failed"
],
"defaultValue": ""
}
]
},
{
"name": "gitpod_supervisor_frontend_client_total",
"help": "Total count of supervisor frontend client",
Expand Down Expand Up @@ -7986,7 +8000,7 @@ spec:
template:
metadata:
annotations:
gitpod.io/checksum_config: 5f647d019f026f04a85e04ad8e695083db2a70f97ee7199143859879d5d40ebe
gitpod.io/checksum_config: 99857889bb5dd2fe08efbb38fa510956566ce067cf2d1e1e945bd024cf4c6bb3
creationTimestamp: null
labels:
app: gitpod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3402,6 +3402,20 @@ data:
}
]
},
{
"name": "gitpod_vscode_web_load_total",
"help": "Total count of supervisor frontend client loading / errored windows",
"labels": [
{
"name": "status",
"allowValues": [
"loading",
"failed"
],
"defaultValue": ""
}
]
},
{
"name": "gitpod_supervisor_frontend_client_total",
"help": "Total count of supervisor frontend client",
Expand Down Expand Up @@ -7998,7 +8012,7 @@ spec:
template:
metadata:
annotations:
gitpod.io/checksum_config: 5f647d019f026f04a85e04ad8e695083db2a70f97ee7199143859879d5d40ebe
gitpod.io/checksum_config: 99857889bb5dd2fe08efbb38fa510956566ce067cf2d1e1e945bd024cf4c6bb3
creationTimestamp: null
labels:
app: gitpod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3723,6 +3723,20 @@ data:
}
]
},
{
"name": "gitpod_vscode_web_load_total",
"help": "Total count of supervisor frontend client loading / errored windows",
"labels": [
{
"name": "status",
"allowValues": [
"loading",
"failed"
],
"defaultValue": ""
}
]
},
{
"name": "gitpod_supervisor_frontend_client_total",
"help": "Total count of supervisor frontend client",
Expand Down Expand Up @@ -8430,7 +8444,7 @@ spec:
template:
metadata:
annotations:
gitpod.io/checksum_config: 5f647d019f026f04a85e04ad8e695083db2a70f97ee7199143859879d5d40ebe
gitpod.io/checksum_config: 99857889bb5dd2fe08efbb38fa510956566ce067cf2d1e1e945bd024cf4c6bb3
creationTimestamp: null
labels:
app: gitpod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3393,6 +3393,20 @@ data:
}
]
},
{
"name": "gitpod_vscode_web_load_total",
"help": "Total count of supervisor frontend client loading / errored windows",
"labels": [
{
"name": "status",
"allowValues": [
"loading",
"failed"
],
"defaultValue": ""
}
]
},
{
"name": "gitpod_supervisor_frontend_client_total",
"help": "Total count of supervisor frontend client",
Expand Down Expand Up @@ -7989,7 +8003,7 @@ spec:
template:
metadata:
annotations:
gitpod.io/checksum_config: 5f647d019f026f04a85e04ad8e695083db2a70f97ee7199143859879d5d40ebe
gitpod.io/checksum_config: 99857889bb5dd2fe08efbb38fa510956566ce067cf2d1e1e945bd024cf4c6bb3
creationTimestamp: null
labels:
app: gitpod
Expand Down
10 changes: 10 additions & 0 deletions install/installer/pkg/components/ide-metrics/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
},
},
},
{
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"},
},
},
},
{
Name: "gitpod_supervisor_frontend_client_total",
Help: "Total count of supervisor frontend client",
Expand Down

0 comments on commit 7fae1c5

Please sign in to comment.