8 Commits

Author SHA1 Message Date
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Tarun Pothulapati
c96adbed6d [telemetry] Add new telemetry.data config option for telemetry
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>
2022-07-01 14:53:40 +05:30
Adrien Thebo
55a5d7a5e2 [installation-telemetry] Expose user control over sending customer ID 2022-06-25 00:47:33 +05:30
Adrien Thebo
2e8366827c [installation-telemetry] Add licenseType to sent telemetry 2022-06-22 21:13:31 +05:30
Tarun Pothulapati
5f6114c282 telemetry: add more fields to data
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>
2022-02-17 12:08:57 +01:00
Simon Emms
58016cdc54 [installation-telemetry]: get installationAdmin data from server 2022-01-25 12:26:17 +01:00
Simon Emms
7eb7d13e6c [installation-telemetry]: log data sent to Segment
This is to provide transparency in what we're logging and to
prove we're not storing any data that could identify an installation
2022-01-21 09:26:13 +01:00
Simon Emms
2a451d6134 [installation-telemetry]: initial commit
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
2022-01-12 15:31:05 +01:00