diff options
author | Yaarit Hatuka <yaarit@redhat.com> | 2021-11-15 17:53:59 +0100 |
---|---|---|
committer | Yaarit Hatuka <yaarit@redhat.com> | 2022-01-13 22:51:57 +0100 |
commit | 0e1909417c7b6b69a525f2245f803cec94e7ca54 (patch) | |
tree | 4766c29efac98ff720fe33937f089d476fa72946 /src/pybind/mgr/dashboard/controllers/telemetry.py | |
parent | Merge pull request #39440 from pdvian/wip-warn-filestore-osds (diff) | |
download | ceph-0e1909417c7b6b69a525f2245f803cec94e7ca54.tar.xz ceph-0e1909417c7b6b69a525f2245f803cec94e7ca54.zip |
mgr/telemetry: introduce new design for adding new data
The current design requires increasing the telemetry revision each time
we add new data to the report. As a result, users need to re-opt-in to
telemetry. This new design allows for adding new data to the report,
while allowing users to keep sending only what they already opted-in to,
hence no re-opt-in is required. In case users wish to report the new
data as well, they need to re-opt-in and enable any new channels.
Also, move formatting perf histograms to a function, so we can use it
both in `show` and `preview` commands.
Fix get_report call in dashboard to use get_report_locked.
Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
Diffstat (limited to 'src/pybind/mgr/dashboard/controllers/telemetry.py')
-rw-r--r-- | src/pybind/mgr/dashboard/controllers/telemetry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pybind/mgr/dashboard/controllers/telemetry.py b/src/pybind/mgr/dashboard/controllers/telemetry.py index 03f34592b1c..792f5471156 100644 --- a/src/pybind/mgr/dashboard/controllers/telemetry.py +++ b/src/pybind/mgr/dashboard/controllers/telemetry.py @@ -213,7 +213,7 @@ class Telemetry(RESTController): :return: Ceph and device report data :rtype: dict """ - return mgr.remote('telemetry', 'get_report', 'all') + return mgr.remote('telemetry', 'get_report_locked', 'all') def singleton_set(self, enable=True, license_name=None): """ |