You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Declare new metrics or update existing in https://github.com/gitpod-io/gitpod/blob/ad355c4d9abd858a44daf15f9bd6747976142911/install/installer/pkg/components/ide-metrics/configmap.go
5
+
- Create a new branch and push, wait for https://werft.gitpod-dev.com/ to create a preview env.
6
+
7
+
### Collecting metrics
8
+
- Convert VS Code telemetry to metrics in https://github.com/gitpod-io/openvscode-server/blob/63796b8c6eca9bcaf36b90ae1e96dae32638bab6/src/vs/gitpod/common/insightsHelper.ts#L35.
9
+
10
+
### Testing from sources
11
+
- Add to product.json (don't commit!):
12
+
```jsonc
13
+
"gitpodPreview": {
14
+
"host":"<host of preview env>",
15
+
// optionally to log to stdout or browser console
16
+
"log": {
17
+
"metrics":true,
18
+
"analytics":false,
19
+
}
20
+
}
21
+
```
22
+
- Restart VS Code Server and open VS Code preview page to trigger telemetry events.
23
+
- In dev workspace for gitpod-io/gitpod run `./dev/preview/portforward-monitoring-satellite.sh -c harvester`
24
+
- Navigate to a printed Grafana link, open Explorer view, select prometheus as a data source and query for metrics.
25
+
26
+
### Integration testing
27
+
28
+
- Commit changes in this repo.
29
+
- Update codeCommit in WORKSPACE.yaml in gitpod-io/gitpod and push.
30
+
- Wait for https://werft.gitpod-dev.com/ to update preview envs.
0 commit comments