Skip to content

Commit 419f788

Browse files
Merge pull request ceph#63691 from zdover23/wip-doc-2025-06-04-backport-63476-to-tentacle
tentacle: doc/mgr: edit telemetry.rst
2 parents 4a93877 + 030736b commit 419f788

File tree

1 file changed

+132
-77
lines changed

1 file changed

+132
-77
lines changed

doc/mgr/telemetry.rst

Lines changed: 132 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -64,36 +64,46 @@ the way Ceph is used.
6464

6565
Data is sent secured to *https://telemetry.ceph.com*.
6666

67-
Individual channels can be enabled or disabled with::
67+
Individual channels can be enabled or disabled with:
6868

69-
ceph telemetry enable channel basic
70-
ceph telemetry enable channel crash
71-
ceph telemetry enable channel device
72-
ceph telemetry enable channel ident
73-
ceph telemetry enable channel perf
69+
.. prompt:: bash #
7470

75-
ceph telemetry disable channel basic
76-
ceph telemetry disable channel crash
77-
ceph telemetry disable channel device
78-
ceph telemetry disable channel ident
79-
ceph telemetry disable channel perf
71+
ceph telemetry enable channel basic
72+
ceph telemetry enable channel crash
73+
ceph telemetry enable channel device
74+
ceph telemetry enable channel ident
75+
ceph telemetry enable channel perf
76+
77+
ceph telemetry disable channel basic
78+
ceph telemetry disable channel crash
79+
ceph telemetry disable channel device
80+
ceph telemetry disable channel ident
81+
ceph telemetry disable channel perf
8082

81-
Multiple channels can be enabled or disabled with::
83+
Multiple channels can be enabled or disabled with:
8284

83-
ceph telemetry enable channel basic crash device ident perf
84-
ceph telemetry disable channel basic crash device ident perf
85+
.. prompt:: bash #
8586

86-
Channels can be enabled or disabled all at once with::
87+
ceph telemetry enable channel basic crash device ident perf
88+
ceph telemetry disable channel basic crash device ident perf
8789

88-
ceph telemetry enable channel all
89-
ceph telemetry disable channel all
90+
Channels can be enabled or disabled all at once with:
91+
92+
.. prompt:: bash #
93+
94+
ceph telemetry enable channel all
95+
ceph telemetry disable channel all
9096

9197
Please note that telemetry should be on for these commands to take effect.
9298

93-
List all channels with::
99+
List all channels with:
100+
101+
.. prompt:: bash #
94102

95103
ceph telemetry channel ls
96104

105+
::
106+
97107
NAME ENABLED DEFAULT DESC
98108
basic ON ON Share basic cluster information (size, version)
99109
crash ON ON Share metadata about Ceph daemon crashes (version, stack straces, etc)
@@ -105,83 +115,110 @@ List all channels with::
105115
Enabling Telemetry
106116
------------------
107117

108-
To allow the *telemetry* module to start sharing data::
118+
To allow the *telemetry* module to start sharing data:
109119

110-
ceph telemetry on
120+
.. prompt:: bash #
121+
122+
ceph telemetry on
111123

112124
Please note: Telemetry data is licensed under the Community Data License
113125
Agreement - Sharing - Version 1.0 (https://cdla.io/sharing-1-0/). Hence,
114-
telemetry module can be enabled only after you add '--license sharing-1-0' to
115-
the 'ceph telemetry on' command.
116-
Once telemetry is on, please consider enabling channels which are off by
117-
default, such as the 'perf' channel. 'ceph telemetry on' output will list the
118-
exact command to enable these channels.
126+
telemetry module can be enabled only after you add ``--license sharing-1-0`` to
127+
the ``ceph telemetry on`` command. Once telemetry is on, please consider
128+
enabling channels which are off by default, such as the ``perf`` channel.
129+
``ceph telemetry on`` output will list the exact command to enable these
130+
channels.
131+
132+
Telemetry can be disabled at any time with:
119133

120-
Telemetry can be disabled at any time with::
134+
.. prompt:: bash #
121135

122-
ceph telemetry off
136+
ceph telemetry off
123137

124138
Sample report
125139
-------------
126140

127-
You can look at what data is reported at any time with the command::
141+
You can look at what data is reported at any time with the command:
142+
143+
.. prompt:: bash #
128144

129-
ceph telemetry show
145+
ceph telemetry show
130146

131-
If telemetry is off, you can preview a sample report with::
147+
If telemetry is off, you can preview a sample report with:
132148

133-
ceph telemetry preview
149+
.. prompt:: bash #
150+
151+
ceph telemetry preview
134152

135153
Generating a sample report might take a few moments in big clusters (clusters
136154
with hundreds of OSDs or more).
137155

138156
To protect your privacy, device reports are generated separately, and data such
139157
as hostname and device serial number is anonymized. The device telemetry is
140158
sent to a different endpoint and does not associate the device data with a
141-
particular cluster. To see a preview of the device report use the command::
159+
particular cluster. To see a preview of the device report use the command:
160+
161+
.. prompt:: bash #
162+
163+
ceph telemetry show-device
142164

143-
ceph telemetry show-device
165+
If telemetry is off, you can preview a sample device report with:
144166

145-
If telemetry is off, you can preview a sample device report with::
167+
.. prompt:: bash #
146168

147-
ceph telemetry preview-device
169+
ceph telemetry preview-device
148170

149171
Please note: In order to generate the device report we use Smartmontools
150-
version 7.0 and up, which supports JSON output.
151-
If you have any concerns about privacy with regard to the information included in
152-
this report, please contact the Ceph developers.
172+
version 7.0 and up, which supports JSON output. If you have any concerns about
173+
privacy with regard to the information included in this report, please contact
174+
the Ceph developers.
153175

154-
In case you prefer to have a single output of both reports, and telemetry is on, use::
176+
In case you prefer to have a single output of both reports, and telemetry is
177+
on, use:
155178

156-
ceph telemetry show-all
179+
.. prompt:: bash #
157180

158-
If you would like to view a single output of both reports, and telemetry is off, use::
181+
ceph telemetry show-all
159182

160-
ceph telemetry preview-all
183+
If you would like to view a single output of both reports, and telemetry is
184+
off, use:
185+
186+
.. prompt:: bash #
187+
188+
ceph telemetry preview-all
161189

162190
**Sample report by channel**
163191

164-
When telemetry is on you can see what data is reported by channel with::
192+
When telemetry is on you can see what data is reported by channel with:
193+
194+
.. prompt:: bash #
165195

166-
ceph telemetry show <channel_name>
196+
ceph telemetry show <channel_name>
167197

168-
Please note: If telemetry is on, and <channel_name> is disabled, the command
169-
above will output a sample report by that channel, according to the collections
170-
the user is enrolled to. However this data is not reported, since the channel
171-
is disabled.
198+
Please note: If telemetry is on, and ``<channel_name>`` is disabled, the
199+
command above will output a sample report by that channel, according to the
200+
collections the user is enrolled to. However this data is not reported, since
201+
the channel is disabled.
172202

173-
If telemetry is off you can preview a sample report by channel with::
203+
If telemetry is off you can preview a sample report by channel with:
204+
205+
.. prompt:: bash #
174206

175207
ceph telemetry preview <channel_name>
176208

177209
Collections
178210
-----------
179211

180-
Collections represent different aspects of data that we collect within a channel.
212+
Collections represent different aspects of data that we collect within a
213+
channel.
214+
215+
List all collections with:
216+
217+
.. prompt:: bash #
181218

182-
List all collections with::
219+
ceph telemetry collection ls
183220

184-
ceph telemetry collection ls
221+
::
185222

186223
NAME STATUS DESC
187224
basic_base NOT REPORTING: NOT OPTED-IN Basic information about the cluster (capacity, number and type of daemons, version, etc.)
@@ -210,82 +247,100 @@ is opted-in to this collection).
210247
**DESC**: General description of the collection.
211248

212249
See the diff between the collections you are enrolled to, and the new,
213-
available collections with::
250+
available collections with:
251+
252+
.. prompt:: bash #
253+
254+
ceph telemetry diff
255+
256+
Enroll to the most recent collections with:
214257

215-
ceph telemetry diff
258+
.. prompt:: bash #
216259

217-
Enroll to the most recent collections with::
260+
ceph telemetry on
218261

219-
ceph telemetry on
262+
Then enable new channels that are off with:
220263

221-
Then enable new channels that are off with::
264+
.. prompt:: bash #
222265

223-
ceph telemetry enable channel <channel_name>
266+
ceph telemetry enable channel <channel_name>
224267

225268
Interval
226269
--------
227270

228271
The module compiles and sends a new report every 24 hours by default.
229-
You can adjust this interval with::
272+
You can adjust this interval with:
230273

231-
ceph config set mgr mgr/telemetry/interval 72 # report every three days
274+
.. prompt:: bash #
275+
276+
ceph config set mgr mgr/telemetry/interval 72 # report every three days
232277

233278
Status
234279
--------
235280

236-
The see the current configuration::
281+
The see the current configuration:
282+
283+
.. prompt:: bash #
237284

238-
ceph telemetry status
285+
ceph telemetry status
239286

240287
Manually sending telemetry
241288
--------------------------
242289

243-
To ad hoc send telemetry data::
290+
To ad hoc send telemetry data:
291+
292+
.. prompt:: bash #
244293

245-
ceph telemetry send
294+
ceph telemetry send
246295

247-
In case telemetry is not enabled (with 'ceph telemetry on'), you need to add
248-
'--license sharing-1-0' to 'ceph telemetry send' command.
296+
In case telemetry is not enabled (with ``ceph telemetry on``), you need to add
297+
``--license sharing-1-0`` to the ``ceph telemetry send`` command.
249298

250299
Sending telemetry through a proxy
251300
---------------------------------
252301

253302
If the cluster cannot directly connect to the configured telemetry
254-
endpoint (default *telemetry.ceph.com*), you can configure a HTTP/HTTPS
255-
proxy server with::
303+
endpoint (default ``telemetry.ceph.com``), you can configure a HTTP/HTTPS
304+
proxy server with:
256305

257-
ceph config set mgr mgr/telemetry/proxy https://10.0.0.1:8080
306+
.. prompt:: bash #
258307

259-
You can also include a *user:pass* if needed::
308+
ceph config set mgr mgr/telemetry/proxy https://10.0.0.1:8080
260309

261-
ceph config set mgr mgr/telemetry/proxy https://ceph:[email protected]:8080
310+
You can also include a ``user:pass`` if needed:
311+
312+
.. prompt:: bash #
313+
314+
ceph config set mgr mgr/telemetry/proxy https://ceph:[email protected]:8080
262315

263316

264317
Contact and Description
265318
-----------------------
266319

267320
A contact and description can be added to the report. This is
268-
completely optional, and disabled by default.::
321+
completely optional, and disabled by default:
322+
323+
.. prompt:: bash #
269324

270-
ceph config set mgr mgr/telemetry/contact 'John Doe <[email protected]>'
271-
ceph config set mgr mgr/telemetry/description 'My first Ceph cluster'
272-
ceph config set mgr mgr/telemetry/channel_ident true
325+
ceph config set mgr mgr/telemetry/contact 'John Doe <[email protected]>'
326+
ceph config set mgr mgr/telemetry/description 'My first Ceph cluster'
327+
ceph config set mgr mgr/telemetry/channel_ident true
273328

274329
Leaderboard
275330
-----------
276331

277332
To participate in a leaderboard in the `public dashboards
278333
<https://telemetry-public.ceph.com/>`_, run the following command:
279334

280-
.. prompt:: bash $
335+
.. prompt:: bash #
281336

282337
ceph config set mgr mgr/telemetry/leaderboard true
283338

284339
The leaderboard displays basic information about the cluster. This includes the
285340
total storage capacity and the number of OSDs. To add a description of the
286341
cluster, run a command of the following form:
287342

288-
.. prompt:: bash $
343+
.. prompt:: bash #
289344

290345
ceph config set mgr mgr/telemetry/leaderboard_description 'Ceph cluster for Computational Biology at the University of XYZ'
291346

0 commit comments

Comments
 (0)