Skip to content

Commit 7897df7

Browse files
author
Dave Cuthbert
authored
DOCSP-29449 add telemetry information (#128)
* DOCSP-29449 add telemetry information * Staging fixes * Tracking data * Staging fixes * Staging fixes * Staging fixes * Review feedback * Review feedback * Review feedback * Review fixes
1 parent b7c40f0 commit 7897df7

File tree

5 files changed

+102
-14
lines changed

5 files changed

+102
-14
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Disables the collection of :ref:`telemetry data <c2c-telemetry>` for
2+
``mongosync``.
3+
4+
.. include:: /includes/opts/telemetry-statement.rst
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
By default, ``mongosync`` collects anonymous, aggregated usage data to
2+
improve MongoDB products. When you run ``mongosync`` you can disable
3+
collection of this telemetry data.

source/reference/configuration.txt

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ Configuration
1414

1515
You can configure :program:`mongosync` instances at startup using a
1616
configuration file. The configuration file contains settings that are
17-
the equivalent of ``mongosync`` command-line options.
17+
the equivalent of ``mongosync`` command line options.
1818

1919
Configuration File
2020
==================
2121

22-
Most :program:`mongosync` command-line options can be written to a YAML
22+
Most :program:`mongosync` command line options can be written to a YAML
2323
file. The configuration file specifies values for each setting using
2424
YAML format.
2525

@@ -56,34 +56,48 @@ Options
5656

5757
.. include:: /includes/opts/cluster0.rst
5858

59-
To set the ``cluster0`` setting from the command-line,
60-
see the :option:`--cluster0` option.
59+
To set the ``cluster0`` setting from the command line, see the
60+
:option:`--cluster0` option.
6161

6262
.. setting:: cluster1
6363

6464
*Type*: string
6565

6666
.. include:: /includes/opts/cluster1.rst
6767

68-
To set the ``cluster1`` setting from the command-line,
68+
To set the ``cluster1`` setting from the command line,
6969
see the :option:`--cluster1` option.
7070

71+
.. setting:: disableTelemetry
72+
73+
*Type*: boolean
74+
75+
.. versionadded:: 1.4.0
76+
77+
.. include:: /includes/opts/disableTelemetry
78+
79+
To set the ``disableTelemetry`` setting from the command line,
80+
see the :option:`--disableTelemetry` option.
81+
82+
For more information, see :ref:`User Data Collection
83+
<c2c-telemetry>`.
84+
7185
.. setting:: id
7286

7387
*Type*: string
7488

7589
.. include:: /includes/opts/id.rst
7690

77-
To set the ``id`` setting from the command-line,
78-
see the :option:`--id` option.
91+
To set the ``id`` setting from the command line, see the
92+
:option:`--id` option.
7993

8094
.. setting:: loadLevel
8195

8296
*Type*: integer
8397

8498
.. include:: /includes/opts/loadLevel.rst
8599

86-
To set the ``loadLevel`` setting from the command-line, see the
100+
To set the ``loadLevel`` setting from the command line, see the
87101
:option:`--loadLevel` option.
88102

89103
.. setting:: logPath
@@ -92,17 +106,17 @@ Options
92106

93107
.. include:: /includes/opts/logPath.rst
94108

95-
To set the ``logPath`` setting from the command-line,
96-
see the :option:`--logPath` option.
109+
To set the ``logPath`` setting from the command line, see the
110+
:option:`--logPath` option.
97111

98112
.. setting:: port
99113

100114
*Type*: integer
101115

102116
.. include:: /includes/opts/port.rst
103117

104-
To set the ``port`` setting from the command-line,
105-
see the :option:`--port` option.
118+
To set the ``port`` setting from the command line, see the
119+
:option:`--port` option.
106120

107121
.. setting:: verbosity
108122

@@ -113,5 +127,5 @@ Options
113127

114128
.. include:: /includes/opts/verbosity.rst
115129

116-
To set the ``verbosity`` setting from the command-line,
117-
see the :option:`--verbosity` option.
130+
To set the ``verbosity`` setting from the command line, see the
131+
:option:`--verbosity` option.

source/reference/mongosync.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ Global Options
6363

6464
For more information, see :ref:`c2c-mongosync-config`.
6565

66+
.. option:: --disableTelemetry
67+
68+
.. versionadded:: 1.4.0
69+
70+
.. include:: /includes/opts/disableTelemetry
71+
72+
To set the ``--disableTelemetry`` option from a configuration file,
73+
see the :setting:`disableTelemetry` setting.
74+
75+
For more information, see :ref:`User Data Collection
76+
<c2c-telemetry>`.
77+
6678
.. option:: --help, -h
6779

6880
Prints usage information to stdout.

source/reference/telemetry.txt

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
.. _c2c-telemetry:
2+
3+
=========
4+
Telemetry
5+
=========
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 2
13+
:class: singlecol
14+
15+
16+
.. include:: /includes/opts/telemetry-statement.rst
17+
18+
Data Collection
19+
---------------
20+
21+
The data ``mongosync`` reports includes:
22+
23+
- State information when ``mongosync`` starts, starts committing, or
24+
passes through intermediate states
25+
- Information about the source and destination clusters and the hardware
26+
that hosts the ``mongosync`` instance
27+
- Initialization arguments
28+
- The number of source and destination writes
29+
- The estimated number of bytes ``mongosync`` copies
30+
- The estimated number of events ``mongosync`` applies
31+
32+
``mongosync`` does not track:
33+
34+
- IP addresses
35+
- Hostnames
36+
- Usernames
37+
- Login credentials
38+
- Connection strings
39+
- Data stored in MongoDB deployments
40+
- Personally identifiable information (PII)
41+
42+
For more information, see MongoDB's `Privacy Policy
43+
<https://www.mongodb.com/legal/privacy-policy?tck=docs_mongosh>`__.
44+
45+
Disable Telemetry Collection
46+
----------------------------
47+
48+
To disable telemetry collection when you start ``mongosync``, set one of
49+
the following:
50+
51+
- :setting:`disableTelemetry` in the :ref:`configuration file
52+
<c2c-config>`
53+
- :option:`--disableTelemetry` on the :ref:`command line
54+
<c2c-mongosync>`
55+

0 commit comments

Comments
 (0)