]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: add leaderboard description and documentation
authorYaarit Hatuka <yaarit@redhat.com>
Mon, 27 Mar 2023 22:51:51 +0000 (22:51 +0000)
committerYaarit Hatuka <yaarit@redhat.com>
Mon, 10 Apr 2023 18:24:20 +0000 (18:24 +0000)
Users who are opted-in to telemetry can also opt-in to participating in
a leaderboard in the telemetry public dashboards
(https://telemetry-public.ceph.com/).

Users can also add a description of the cluster to publicly appear in
the leaderboard.

Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
(cherry picked from commit d51947fe8a9bb514e5a6309551c10224efdcfa0d)

doc/mgr/telemetry.rst
src/pybind/mgr/telemetry/module.py

index 388353b84adcfdf6121bec4064896d731760b790..72ec61dada868eff2afa9f5faf9eae488654f62b 100644 (file)
@@ -269,3 +269,20 @@ completely optional, and disabled by default.::
   ceph config set mgr mgr/telemetry/description 'My first Ceph cluster'
   ceph config set mgr mgr/telemetry/channel_ident true
 
+Leaderboard
+-----------
+
+Users who are interested in participating in a leaderboard in the `public
+dashboards <https://telemetry-public.ceph.com/>`_ can do so with::
+
+  ceph config set mgr mgr/telemetry/leaderboard true
+
+The leaderboard displays basic information about the cluster, like total
+storage capacity, number of OSDs, etc. A description of the cluster can be
+added with::
+
+  ceph config set mgr mgr/telemetry/leaderboard_description 'Ceph cluster for Computational Biology at the University of XYZ'
+
+In case the 'ident' channel is enabled, its details will not be displayed in
+the leaderboard.
+
index 2626679113bbf63625d7d03fec0e2564e91ba656..74e289461d2ea16ba6e5deab2ebbc1e7032e3e03 100644 (file)
@@ -198,6 +198,9 @@ class Module(MgrModule):
         Option(name='leaderboard',
                type='bool',
                default=False),
+        Option(name='leaderboard_description',
+               type='str',
+               default=None),
         Option(name='description',
                type='str',
                default=None),
@@ -261,6 +264,7 @@ class Module(MgrModule):
             self.enabled = False
             self.last_opt_revision = 0
             self.leaderboard = ''
+            self.leaderboard_description = ''
             self.interval = 0
             self.proxy = ''
             self.channel_basic = True
@@ -980,6 +984,7 @@ class Module(MgrModule):
             channels = self.get_active_channels()
         report = {
             'leaderboard': self.leaderboard,
+            'leaderboard_description': self.leaderboard_description,
             'report_version': 1,
             'report_timestamp': datetime.utcnow().isoformat(),
             'report_id': self.report_id,