Fixes https://github.com/gitpod-io/gitpod/issues/10766
This PR adds a new `experimental.telemetry.data.platform` config option
that is then passed to `GITPOD_INSTALLATION_PLATFORM` env variable, which
is then transmitted by the `gitpod-telemetry` job as the `platform`
property into our telemetry store. The value of this env variable
is then overrided by each install method.
This env can have the following values:
- `installer` by default as when the installation is done directly
through the installer, We don't have enough information
about the environment.
- [One of the `distribution` values](https://docs.replicated.com/reference/template-functions-static-context#distribution)
when done through `kots`. This would have the distribution in which
Gitpod is being installed, and is dependent on `kots`.
- `local-preview` when the installation is done through the new
preview install method.
As the changes show in the PR, each installation method overrides
the value.
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
Fixes https://github.com/gitpod-io/gitpod/issues/7866
This PR updates the `installation-admin-controller` to also retrieve
more data to send with telemetry. These are not part of the
`installationAdminDb` as we do not want to store this in the database
but lazily retrieve whenever a request is sent to `/data` endpoint
of the `installation-admin` express app unlike the `uuid` and settings
which need to be stored and updated.
The following fields are added:
- `totalUsers` : specifies the total number of users in the instance
- `totalWorkspaces`: specifies the total number of **regular** workspaces in the instance
- `totalInstances`: specifies the total number of **regular** workspace instances in the gitpod instance
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
This will not actually send telemetry data as the database call is
hard-coded to always return false.
Also configures installation telemetry to be sent periodically in the
Installer