]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/telemetry: add preview-device and preview-all commands
authorYaarit Hatuka <yaarit@redhat.com>
Tue, 23 Nov 2021 21:28:47 +0000 (21:28 +0000)
committerYaarit Hatuka <yaarit@redhat.com>
Thu, 13 Jan 2022 21:53:47 +0000 (21:53 +0000)
commitdbe8500a78579609ed1aec19e69e902582330c47
treef3d63eb2b5a203388ae062fc076d7281b3a531ba
parent1c1fcad510c434ae51e7578ce3926a44d64dbe5e
mgr/telemetry: add preview-device and preview-all commands

`ceph telemetry show` will show a sample cluster report if the user is
opted-in to telemetry. The report will be compiled of the collections
the user is opted-in to. To preview a report compiled of the most recent
collection available, use `ceph telemetry preview`.

The device channel is not included in the cluster report, since it's
being sent to a different endpoint, thus we use
`ceph telemetry show-device` in case the user is opted-in to telemetry
and the device channel is enabled. If not, it can also be previewed with
`ceph telemetry preview-device`.

If telemetry is on, and device channel is enabled, both reports can be
reviewed with `ceph telemetry show-all`, otherwise use
`ceph telemetry preview-all`.

Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
src/pybind/mgr/telemetry/module.py