Project

General

Profile

Feature #43956

mgr/dashboard: Provide an better workflow to "opt in" to enabling the telemetry mgr plugin

Added by Lenz Grimmer 23 days ago. Updated 7 days ago.

Status:
New
Priority:
Normal
Category:
dashboard/general
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

This is a follow-up to #36488, which added a way to configure the telemetry mgr plugin, but does not really provide an easy workflow or the option to review the generated report beforehand. This issue requests to make this feature more user-visible and encourage the user to enable it.

Upon a fresh cluster installation, it should be possible for the user to "opt in" and enable the telemetry plugin so we can obtain some metrics and statistics about the user's cluster.

Upon first login of an admin user on a freshly installed cluster, the dashboard should display a prompt that informs the user about the purpose of the metrics collection and should ask the user for confirmation to enable it.

It would be helpful to prompt the user for an email address (optional) and display a sample report of the data that is sent to telemetry.ceph.com.

Even if the user initially rejects the activation, the dashboard should still provide an easy way to enable this plugin later, following the same workflow as outlined above.

Also it might be sensible to re-ask the admin if he wants to activate the plugin after a major update?


Related issues

Copied from mgr - Feature #36488: mgr/dashboard: Provide way to "opt in" to enabling the telemetry mgr plugin Resolved 10/17/2018

History

#1 Updated by Lenz Grimmer 23 days ago

  • Copied from Feature #36488: mgr/dashboard: Provide way to "opt in" to enabling the telemetry mgr plugin added

#2 Updated by Tatjana Dehler 23 days ago

  • Pull request ID deleted (25989)

#3 Updated by Tatjana Dehler 22 days ago

  • Description updated (diff)

#4 Updated by Tatjana Dehler 20 days ago

Lenz Grimmer wrote:

display a sample report of the data that is sent to telemetry.ceph.com.

I'm wondering if we want to display the whole report in the dashboard or rather want to show a download button (or even both).

I'm also wondering where we want to display the sample report and if Cluster -> Manager modules -> telemetry might be a good place for it. Or if it's too less prominent.
A second idea would be to have a separate dashboard widget for the telemetry plugin to guide the user through the configuration and also to show a download button for the sample report.

#5 Updated by Volker Theile 7 days ago

I like option 2 with the widget.

Alternatively another idea would be to display a dialog after the first dialog which allows the user to enable the telemetry options and shows an example (which must not be the one from the current system). This solution can be easily implemented via Angular route guard :-) I know, another one, but this is a great solution to implement such behavior. The only challange is to store a flag that can be used to remember that the dialog has been displayed already.

#6 Updated by Tatjana Dehler 7 days ago

Volker Theile wrote:

I like option 2 with the widget.

Alternatively another idea would be to display a dialog after the first dialog which allows the user to enable the telemetry options and shows an example (which must not be the one from the current system). This solution can be easily implemented via Angular route guard :-) I know, another one, but this is a great solution to implement such behavior.

I'm not really sure what you mean by 'after the first dialog'. Or do you mean 'after the first login'? - In that case the dialog would only be shown once per user, right? - But what if the admin wants to see the sample report at a later point?

The only challange is to store a flag that can be used to remember that the dialog has been displayed already.

And that's not the only challenge as it's a system wide setting. Imagine the following: The admin logs in for the first time -> Does not enable the Telemetry plugin -> Creates another admin user. The second admin logs in and might enable the Telemetry plugin although the first admin decided against it?

I don't think this should be a per user setting. Maybe we can add a general dashboard setting "ask_for_telemetry_enablement" (or something similar) which is true until an admin passed the configuration dialog (either enabled the plugin or not). I'm wondering if it would be possible to reset the setting (to true) after each major update.

#7 Updated by Volker Theile 7 days ago

Oh right, seems to be more complex than it looks.

Also available in: Atom PDF