-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Telemetry Plugin support in DevWorkspaces (workspaces started with the DevWorkspace engine) #20090
Comments
@sleshchenko I have created this issue in order to start the discussion regarding telemetry for the new type of workspaces. Basically, before the DevWorkspace becomes a default engine we need to make sure that the telemetry plugin can be enabled for this type of workspace. In case you already have some input on the telemetry https://www.eclipse.org/che/docs/che-7/extensions/telemetry/ for DevWorskapce, please share it in the issue |
Is there a sample (testing) meta.yaml or similar for the telemetry plugin? If there is, then I can help in preparing a devfile 2.0-formatted version of it (as a DevWorkspaceTemplate CR), which we can use to start testing telemetry in DevWorkspaces. A URL that serves the DWT maps fairly nicely onto how plugins are defined for DevWorkspaces. For example, it's possible to add the Che-Theia editor to a DevWorkspace using the yaml below: spec:
template:
components:
- name: theia
plugin:
uri: https://che-plugin-registry-main.surge.sh/v3/plugins/eclipse/che-theia/next/devfile.yaml a similar approach could be used to get the telemetry plugin. |
The current blocker for this to make it live - provision telemetry plugin info as an environment variable into all other containers since devfile 2.x spec does not provide such an ability.
pros:
cons:
pros:
cons:
@amisevsk please review and let me know if there is a place for inaccuracy or I missed anything. |
it's done from DWO point of view. |
Hello, after a discussion with @benoitf , the default plugins that are specified using a v2 devfile uri can be added to new devworkspaces by creating a devworkspace template from the v2 devfile, and referencing the template on newly created devworkspaces. The devworkspace templates should be managed on the che-operator side, is that right? Every time the CR is updated with new default plugins, the devworkspace templates would be created accordingly by the che-operator? Also, should the default plugins be also injected on workspace start too, instead of only on workspace create? |
For managing default plugin templates, we can do what the Web Terminal Operator does in order to avoid maintaining DWTs across the cluster. If we create DevWorkspaceTemplates in a known namespace (WTO uses its current namespace) and add the annotation controller.devfile.io/allow-import-from: "*" then these DWTs can be used in any workspace on the cluster via spec:
template:
components:
- name: my-default-plugin
plugin:
kubernetes:
name: k8s-dwt-object-name
namespace: k8s-dwt-namespace |
moving issue to 7.42 milestone as this issue is part of the endgame |
Moving to 7.44 as 7.43 has been released. |
@dkwon17 going to close the issue since the initial plugin is contributed to the https://github.com/che-incubator/devworkspace-telemetry-woopra-plugin Documentation is tracked as part of the https://github.com/che-incubator/devworkspace-telemetry-woopra-plugin |
@l0rd , yes, we don't need to backport anything. |
Is your task related to a problem? Please describe.
As part of this task, we need to make sure that the telemetry plugin that is possible to enable for Che 7 workspaces can be re-used, or need to be adapted, for the DevWorkspaces - https://www.eclipse.org/che/docs/che-7/extensions/telemetry/
Describe the solution you'd like
It should be possible to enable telemetry plugin for all DevWorkspaces running on a cluster.
Currently, in Che 7 plugin the can be enabled via
Describe alternatives you've considered
N/A
Additional context
telemetry - https://www.eclipse.org/che/docs/che-7/extensions/telemetry/
Devfile v2 and IDE plug-ins - https://che.eclipseprojects.io/2021/06/23/@florent.benoit-devfile-v2-and-ide-plug-ins.html
The text was updated successfully, but these errors were encountered: