]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/telemetry: add commands to enable/disable channels
authorYaarit Hatuka <yaarit@redhat.com>
Tue, 23 Nov 2021 00:12:10 +0000 (00:12 +0000)
committerYaarit Hatuka <yaarit@redhat.com>
Thu, 13 Jan 2022 21:53:47 +0000 (21:53 +0000)
commit012bde7b261c73b830c8c8747730187c60c59643
treeaf4b4fc17b98d55467f832da1aabc0513874f724
parent0e1909417c7b6b69a525f2245f803cec94e7ca54
mgr/telemetry: add commands to enable/disable channels

Currently we enable/disable a telemetry channel via CLI with:
  `ceph config set mgr mgr/telemetry/channel_basic true`
  `ceph config set mgr mgr/telemetry/channel_crash false`

We can now do this with:
  `ceph telemetry enable channel basic`
  `ceph telemetry disable channel crash`

We allow enabling / disabling lists of channels:
  `ceph telemetry enable channel basic device crash perf`
  `ceph telemetry disable channel basic device crash perf`

Please note, telemetry should be on for these commands to take effect.

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