2019-03-01 20:31:50 +00:00
|
|
|
.. _telemetry:
|
|
|
|
|
2019-02-27 12:49:47 +00:00
|
|
|
Telemetry Module
|
2018-04-27 07:14:05 +00:00
|
|
|
================
|
|
|
|
|
2019-03-01 20:31:50 +00:00
|
|
|
The telemetry module sends anonymous data about the cluster back to the Ceph
|
|
|
|
developers to help understand how Ceph is used and what problems users may
|
|
|
|
be experiencing.
|
|
|
|
|
2020-04-07 15:18:27 +00:00
|
|
|
This data is visualized on `public dashboards <https://telemetry-public.ceph.com/>`_
|
|
|
|
that allow the community to quickly see summary statistics on how many clusters
|
|
|
|
are reporting, their total capacity and OSD count, and version distribution
|
|
|
|
trends.
|
|
|
|
|
2019-07-25 15:47:07 +00:00
|
|
|
Channels
|
|
|
|
--------
|
|
|
|
|
2020-04-07 15:18:27 +00:00
|
|
|
The telemetry report is broken down into several "channels", each with
|
2019-07-25 15:47:07 +00:00
|
|
|
a different type of information. Assuming telemetry has been enabled,
|
|
|
|
individual channels can be turned on and off. (If telemetry is off,
|
|
|
|
the per-channel setting has no effect.)
|
|
|
|
|
|
|
|
* **basic** (default: on): Basic information about the cluster
|
2019-03-01 20:31:50 +00:00
|
|
|
|
2019-07-25 15:47:07 +00:00
|
|
|
- capacity of the cluster
|
2020-04-07 15:18:27 +00:00
|
|
|
- number of monitors, managers, OSDs, MDSs, object gateways, or other daemons
|
2019-07-25 15:47:07 +00:00
|
|
|
- software version currently being used
|
|
|
|
- number and types of RADOS pools and CephFS file systems
|
2019-07-25 21:22:55 +00:00
|
|
|
- names of configuration options that have been changed from their
|
|
|
|
default (but *not* their values)
|
2019-07-25 15:47:07 +00:00
|
|
|
|
|
|
|
* **crash** (default: on): Information about daemon crashes, including
|
2019-03-01 20:31:50 +00:00
|
|
|
|
|
|
|
- type of daemon
|
|
|
|
- version of the daemon
|
|
|
|
- operating system (OS distribution, kernel version)
|
|
|
|
- stack trace identifying where in the Ceph code the crash occurred
|
|
|
|
|
2020-02-06 17:50:42 +00:00
|
|
|
* **device** (default: on): Information about device metrics, including
|
|
|
|
|
|
|
|
- anonymized SMART metrics
|
|
|
|
|
|
|
|
* **ident** (default: off): User-provided identifying information about
|
2019-07-25 15:47:07 +00:00
|
|
|
the cluster
|
|
|
|
|
|
|
|
- cluster description
|
|
|
|
- contact email address
|
|
|
|
|
2021-11-19 15:40:16 +00:00
|
|
|
* **perf** (default: off): Various performance metrics of a cluster, which can be used to
|
2021-07-28 15:11:17 +00:00
|
|
|
|
2021-07-13 20:44:44 +00:00
|
|
|
- reveal overall cluster health
|
|
|
|
- identify workload patterns
|
|
|
|
- troubleshoot issues with latency, throttling, memory management, etc.
|
2021-11-19 15:40:16 +00:00
|
|
|
- monitor cluster performance by daemon
|
2021-07-13 20:44:44 +00:00
|
|
|
|
2019-03-01 20:31:50 +00:00
|
|
|
The data being reported does *not* contain any sensitive
|
2020-02-06 17:50:42 +00:00
|
|
|
data like pool names, object names, object contents, hostnames, or device
|
|
|
|
serial numbers.
|
2019-03-01 20:31:50 +00:00
|
|
|
|
|
|
|
It contains counters and statistics on how the cluster has been
|
2019-03-26 20:52:12 +00:00
|
|
|
deployed, the version of Ceph, the distribution of the hosts and other
|
2019-03-01 20:31:50 +00:00
|
|
|
parameters which help the project to gain a better understanding of
|
|
|
|
the way Ceph is used.
|
|
|
|
|
2020-02-21 09:08:10 +00:00
|
|
|
Data is sent secured to *https://telemetry.ceph.com*.
|
2019-03-01 20:31:50 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
Individual channels can be enabled or disabled with::
|
|
|
|
|
|
|
|
ceph telemetry enable channel basic
|
|
|
|
ceph telemetry enable channel crash
|
|
|
|
ceph telemetry enable channel device
|
|
|
|
ceph telemetry enable channel ident
|
|
|
|
ceph telemetry enable channel perf
|
|
|
|
|
|
|
|
ceph telemetry disable channel basic
|
|
|
|
ceph telemetry disable channel crash
|
|
|
|
ceph telemetry disable channel device
|
|
|
|
ceph telemetry disable channel ident
|
|
|
|
ceph telemetry disable channel perf
|
|
|
|
|
|
|
|
Multiple channels can be enabled or disabled with::
|
|
|
|
|
|
|
|
ceph telemetry enable channel basic crash device ident perf
|
|
|
|
ceph telemetry disable channel basic crash device ident perf
|
|
|
|
|
2022-01-12 05:57:21 +00:00
|
|
|
Channels can be enabled or disabled all at once with::
|
|
|
|
|
|
|
|
ceph telemetry enable channel all
|
|
|
|
ceph telemetry disable channel all
|
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
Please note that telemetry should be on for these commands to take effect.
|
|
|
|
|
|
|
|
List all channels with::
|
|
|
|
|
|
|
|
ceph telemetry channel ls
|
|
|
|
|
|
|
|
NAME ENABLED DEFAULT DESC
|
|
|
|
basic ON ON Share basic cluster information (size, version)
|
|
|
|
crash ON ON Share metadata about Ceph daemon crashes (version, stack straces, etc)
|
|
|
|
device ON ON Share device health metrics (e.g., SMART data, minus potentially identifying info like serial numbers)
|
|
|
|
ident OFF OFF Share a user-provided description and/or contact email for the cluster
|
|
|
|
perf ON OFF Share various performance metrics of a cluster
|
|
|
|
|
|
|
|
|
|
|
|
Enabling Telemetry
|
|
|
|
------------------
|
|
|
|
|
|
|
|
To allow the *telemetry* module to start sharing data::
|
|
|
|
|
|
|
|
ceph telemetry on
|
|
|
|
|
|
|
|
Please note: Telemetry data is licensed under the Community Data License
|
|
|
|
Agreement - Sharing - Version 1.0 (https://cdla.io/sharing-1-0/). Hence,
|
|
|
|
telemetry module can be enabled only after you add '--license sharing-1-0' to
|
|
|
|
the 'ceph telemetry on' command.
|
|
|
|
Once telemetry is on, please consider enabling channels which are off by
|
|
|
|
default, such as the 'perf' channel. 'ceph telemetry on' output will list the
|
|
|
|
exact command to enable these channels.
|
|
|
|
|
|
|
|
Telemetry can be disabled at any time with::
|
|
|
|
|
|
|
|
ceph telemetry off
|
|
|
|
|
2019-03-01 20:31:50 +00:00
|
|
|
Sample report
|
|
|
|
-------------
|
2018-04-27 07:14:05 +00:00
|
|
|
|
2019-03-01 20:31:50 +00:00
|
|
|
You can look at what data is reported at any time with the command::
|
2018-04-27 07:14:05 +00:00
|
|
|
|
2019-03-01 20:31:50 +00:00
|
|
|
ceph telemetry show
|
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
If telemetry is off, you can preview a sample report with::
|
|
|
|
|
|
|
|
ceph telemetry preview
|
|
|
|
|
|
|
|
Generating a sample report might take a few moments in big clusters (clusters
|
|
|
|
with hundreds of OSDs or more).
|
|
|
|
|
2020-02-06 17:50:42 +00:00
|
|
|
To protect your privacy, device reports are generated separately, and data such
|
|
|
|
as hostname and device serial number is anonymized. The device telemetry is
|
|
|
|
sent to a different endpoint and does not associate the device data with a
|
|
|
|
particular cluster. To see a preview of the device report use the command::
|
|
|
|
|
|
|
|
ceph telemetry show-device
|
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
If telemetry is off, you can preview a sample device report with::
|
|
|
|
|
|
|
|
ceph telemetry preview-device
|
|
|
|
|
2020-02-06 17:50:42 +00:00
|
|
|
Please note: In order to generate the device report we use Smartmontools
|
|
|
|
version 7.0 and up, which supports JSON output.
|
2019-03-01 20:31:50 +00:00
|
|
|
If you have any concerns about privacy with regard to the information included in
|
|
|
|
this report, please contact the Ceph developers.
|
2018-04-27 07:14:05 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
In case you prefer to have a single output of both reports, and telemetry is on, use::
|
2018-04-27 07:14:05 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
ceph telemetry show-all
|
2019-07-25 15:47:07 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
If you would like to view a single output of both reports, and telemetry is off, use::
|
2019-07-25 15:47:07 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
ceph telemetry preview-all
|
2019-07-25 15:47:07 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
**Sample report by channel**
|
2018-04-27 07:14:05 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
When telemetry is on you can see what data is reported by channel with::
|
2019-03-01 20:31:50 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
ceph telemetry show <channel_name>
|
2020-02-06 17:50:42 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
Please note: If telemetry is on, and <channel_name> is disabled, the command
|
|
|
|
above will output a sample report by that channel, according to the collections
|
|
|
|
the user is enrolled to. However this data is not reported, since the channel
|
|
|
|
is disabled.
|
2018-04-27 07:14:05 +00:00
|
|
|
|
2021-12-07 22:16:28 +00:00
|
|
|
If telemetry is off you can preview a sample report by channel with::
|
|
|
|
|
|
|
|
ceph telemetry preview <channel_name>
|
|
|
|
|
|
|
|
Collections
|
|
|
|
-----------
|
|
|
|
|
|
|
|
Collections represent different aspects of data that we collect within a channel.
|
|
|
|
|
|
|
|
List all collections with::
|
|
|
|
|
|
|
|
ceph telemetry collection ls
|
|
|
|
|
2022-09-22 20:50:54 +00:00
|
|
|
NAME STATUS DESC
|
|
|
|
basic_base NOT REPORTING: NOT OPTED-IN Basic information about the cluster (capacity, number and type of daemons, version, etc.)
|
|
|
|
basic_mds_metadata NOT REPORTING: NOT OPTED-IN MDS metadata
|
|
|
|
basic_pool_options_bluestore NOT REPORTING: NOT OPTED-IN Per-pool bluestore config options
|
|
|
|
basic_pool_usage NOT REPORTING: NOT OPTED-IN Default pool application and usage statistics
|
|
|
|
basic_rook_v01 NOT REPORTING: NOT OPTED-IN Basic Rook deployment data
|
|
|
|
basic_usage_by_class NOT REPORTING: NOT OPTED-IN Default device class usage statistics
|
|
|
|
crash_base NOT REPORTING: NOT OPTED-IN Information about daemon crashes (daemon type and version, backtrace, etc.)
|
|
|
|
device_base NOT REPORTING: NOT OPTED-IN Information about device health metrics
|
|
|
|
ident_base NOT REPORTING: NOT OPTED-IN, CHANNEL ident IS OFF User-provided identifying information about the cluster
|
|
|
|
perf_memory_metrics NOT REPORTING: NOT OPTED-IN, CHANNEL perf IS OFF Heap stats and mempools for mon and mds
|
|
|
|
perf_perf NOT REPORTING: NOT OPTED-IN, CHANNEL perf IS OFF Information about performance counters of the cluster
|
2021-12-07 22:16:28 +00:00
|
|
|
|
|
|
|
Where:
|
|
|
|
|
|
|
|
**NAME**: Collection name; prefix indicates the channel the collection belongs to.
|
|
|
|
|
|
|
|
**STATUS**: Indicates whether the collection metrics are reported; this is
|
|
|
|
determined by the status (enabled / disabled) of the channel the collection
|
2022-01-12 04:36:27 +00:00
|
|
|
belongs to, along with the enrollment status of the collection (whether the user
|
|
|
|
is opted-in to this collection).
|
2021-12-07 22:16:28 +00:00
|
|
|
|
|
|
|
**DESC**: General description of the collection.
|
|
|
|
|
|
|
|
See the diff between the collections you are enrolled to, and the new,
|
|
|
|
available collections with::
|
|
|
|
|
|
|
|
ceph telemetry diff
|
|
|
|
|
|
|
|
Enroll to the most recent collections with::
|
|
|
|
|
|
|
|
ceph telemetry on
|
|
|
|
|
|
|
|
Then enable new channels that are off with::
|
|
|
|
|
|
|
|
ceph telemetry enable channel <channel_name>
|
2018-04-27 07:14:05 +00:00
|
|
|
|
|
|
|
Interval
|
|
|
|
--------
|
2019-03-01 20:31:50 +00:00
|
|
|
|
2019-10-21 07:11:35 +00:00
|
|
|
The module compiles and sends a new report every 24 hours by default.
|
2019-03-01 20:31:50 +00:00
|
|
|
You can adjust this interval with::
|
|
|
|
|
2019-10-21 07:11:35 +00:00
|
|
|
ceph config set mgr mgr/telemetry/interval 72 # report every three days
|
2018-04-27 07:14:05 +00:00
|
|
|
|
2020-02-06 17:50:42 +00:00
|
|
|
Status
|
|
|
|
--------
|
|
|
|
|
|
|
|
The see the current configuration::
|
|
|
|
|
|
|
|
ceph telemetry status
|
|
|
|
|
2020-03-05 17:15:27 +00:00
|
|
|
Manually sending telemetry
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
To ad hoc send telemetry data::
|
|
|
|
|
|
|
|
ceph telemetry send
|
|
|
|
|
|
|
|
In case telemetry is not enabled (with 'ceph telemetry on'), you need to add
|
|
|
|
'--license sharing-1-0' to 'ceph telemetry send' command.
|
|
|
|
|
2020-02-27 10:11:01 +00:00
|
|
|
Sending telemetry through a proxy
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
If the cluster cannot directly connect to the configured telemetry
|
|
|
|
endpoint (default *telemetry.ceph.com*), you can configure a HTTP/HTTPS
|
|
|
|
proxy server with::
|
|
|
|
|
|
|
|
ceph config set mgr mgr/telemetry/proxy https://10.0.0.1:8080
|
|
|
|
|
|
|
|
You can also include a *user:pass* if needed::
|
|
|
|
|
|
|
|
ceph config set mgr mgr/telemetry/proxy https://ceph:telemetry@10.0.0.1:8080
|
|
|
|
|
|
|
|
|
2018-04-27 07:14:05 +00:00
|
|
|
Contact and Description
|
|
|
|
-----------------------
|
|
|
|
|
2019-07-25 15:47:07 +00:00
|
|
|
A contact and description can be added to the report. This is
|
|
|
|
completely optional, and disabled by default.::
|
2019-03-01 20:31:50 +00:00
|
|
|
|
|
|
|
ceph config set mgr mgr/telemetry/contact 'John Doe <john.doe@example.com>'
|
|
|
|
ceph config set mgr mgr/telemetry/description 'My first Ceph cluster'
|
2019-07-25 15:47:07 +00:00
|
|
|
ceph config set mgr mgr/telemetry/channel_ident true
|
2018-04-27 07:14:05 +00:00
|
|
|
|