Skip to content

Commit

Permalink
Merge pull request #21982 from tchaikov/mgr-brag
Browse files Browse the repository at this point in the history
mgr/telemetry: Add Ceph Telemetry module to send reports back to project
  • Loading branch information
liewegas committed May 21, 2018
2 parents ec418e0 + 394b100 commit 7f04b17
Show file tree
Hide file tree
Showing 42 changed files with 478 additions and 1,632 deletions.
1 change: 0 additions & 1 deletion ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,6 @@ fi
%{_bindir}/rbd-replay-prep
%endif
%{_bindir}/ceph-post-file
%{_bindir}/ceph-brag
%{_tmpfilesdir}/ceph-common.conf
%{_mandir}/man8/ceph-authtool.8*
%{_mandir}/man8/ceph-conf.8*
Expand Down
1 change: 0 additions & 1 deletion debian/ceph-common.install
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ usr/bin/rbd
usr/bin/rbdmap
usr/bin/rbd-replay*
usr/bin/ceph-post-file
usr/bin/ceph-brag
usr/sbin/mount.ceph sbin
usr/lib/ceph/compressor/*
usr/lib/ceph/crypto/* [amd64]
Expand Down
1 change: 1 addition & 0 deletions doc/mgr/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ sensible.
Influx plugin <influx>
Hello plugin <hello>
Telegraf plugin <telegraf>
Telemetry plugin <telemetry>
36 changes: 36 additions & 0 deletions doc/mgr/telemetry.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Telemetry plugin
================
The telemetry plugin sends anonymous data about the cluster, in which it is running, back to the Ceph project.

The data being sent back to the project does not contain any sensitive data like pool names, object names, object contents or hostnames.

It contains counters and statistics on how the cluster has been deployed, the version of Ceph, the distribition of the hosts and other parameters which help the project to gain a better understanding of the way Ceph is used.

Data is sent over HTTPS to *telemetry.ceph.com*

Enabling
--------

The *telemetry* module is enabled with::

ceph mgr module enable telemetry


Interval
--------
The module compiles and sends a new report every 72 hours by default.

Contact and Description
-----------------------
A contact and description can be added to the report, this is optional.

ceph telemetry config-set contact 'John Doe <john.doe@example.com>'
ceph telemetry config-set description 'My first Ceph cluster'

Show report
-----------
The report is sent in JSON format, and can be printed::

ceph telemetry show

So you can inspect the content if you have privacy concerns.
3 changes: 3 additions & 0 deletions qa/tasks/mgr/test_module_selftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def test_selftest_run(self):
self._load_module("selftest")
self.mgr_cluster.mon_manager.raw_cluster_cmd("mgr", "self-test", "run")

def test_telemetry(self):
self._selftest_plugin("telemetry")

def test_selftest_config_update(self):
"""
That configuration updates are seen by running mgr modules
Expand Down
2 changes: 0 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1100,8 +1100,6 @@ configure_file(
${CMAKE_BINARY_DIR}/include/acconfig.h
)

add_subdirectory(brag)

# Everything you need to spin up a cluster with vstart.sh
add_custom_target(vstart-base DEPENDS
ceph-osd
Expand Down
3 changes: 0 additions & 3 deletions src/brag/CMakeLists.txt

This file was deleted.

185 changes: 0 additions & 185 deletions src/brag/README.md

This file was deleted.

0 comments on commit 7f04b17

Please sign in to comment.