Skip to content

Commit cc4e9cf

Browse files
authored
(DOCSP-20716) Documents telemetry for Atlas CLI (#27)
* (DOCSP-20716) Documents telemetry for Atlas CLI * Adds examples for what we DONT track * Adds enable/disable instructions * Adds env variable and config file instructions * Includes changes from copy review * Includes updates from tech review
1 parent 9325955 commit cc4e9cf

File tree

5 files changed

+159
-2
lines changed

5 files changed

+159
-2
lines changed

snooty.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ toc_landing_pages = [
1616
"/command/atlas",
1717
"/connect-atlas-cli",
1818
"/install-atlas-cli",
19-
"/migrate-to-atlas-cli"
19+
"/migrate-to-atlas-cli",
20+
"/telemetry"
2021
]
2122

2223
[constants]

source/atlas-cli-env-variables.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ The {+atlas-cli+} supports the following environment variables:
4444
* - Variable
4545
- Description
4646

47+
* - ``DO_NOT_TRACK``
48+
- Flag that indicates whether telemetry is disabled for the
49+
{+atlas-cli+}. Set to ``1`` to disable telemetry.
50+
51+
You can also enable or disable telemetry with
52+
``MONGODB_ATLAS_TELEMETRY_ENABLED``, but you don't need to
53+
specify both.
54+
4755
* - ``MONGODB_ATLAS_PUBLIC_API_KEY``
4856
- Sets the public |api| key for commands that interact with
4957
|service|.
@@ -98,4 +106,11 @@ The {+atlas-cli+} supports the following environment variables:
98106

99107
* - ``MONGODB_ATLAS_REFRESH_TOKEN``
100108
- String that allows |service| to automatically request a new
101-
access token when the current access token expires.
109+
access token when the current access token expires.
110+
111+
* - ``MONGODB_ATLAS_TELEMETRY_ENABLED``
112+
- Flag that indicates whether telemetry is enabled for the
113+
{+atlas-cli+}. Set to ``false`` to disable telemetry.
114+
115+
You can also enable or disable telemetry with ``DO_NOT_TRACK``,
116+
but you don't need to specify both.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
===========================
3+
Configure Optional Settings
4+
===========================
5+
6+
.. default-domain:: mongodb
7+
8+
.. contents:: On this page
9+
:local:
10+
:backlinks: none
11+
:depth: 1
12+
:class: singlecol
13+
14+
.. toctree::
15+
16+
/telemetry

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Follow these steps to get started using the {+atlas-cli+}:
3737
Overview </index>
3838
/install-atlas-cli
3939
/connect-atlas-cli
40+
/configure-optional-settings
4041
/atlas-cli-tutorials
4142
Atlas CLI Commands </command/atlas>
4243
/atlas-cli-changelog

source/telemetry.txt

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
.. _telemetry:
2+
3+
===================
4+
Configure Telemetry
5+
===================
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 1
13+
:class: singlecol
14+
15+
{+atlas-cli+}'s telemetry collects anonymous, aggregate usage data to
16+
identify improvements with the greatest impact. The
17+
{+atlas-cli+} enables telemetry by default.
18+
19+
Learn What the {+atlas-cli+} Tracks
20+
-----------------------------------
21+
22+
{+atlas-cli+} telemetry tracks
23+
non-Personally-Identifiable Information (PII), which includes but is
24+
not limited to the following information:
25+
26+
.. list-table::
27+
:header-rows: 1
28+
:widths: 60 40
29+
30+
* - Data
31+
- Example Value
32+
33+
* - {+atlas-cli+} version number
34+
- ``1.0.0``
35+
36+
* - Installation source
37+
- ``Homebrew``
38+
39+
* - Operating System (OS) and OS version
40+
- ``Windows 11.5``
41+
42+
* - Authentication method. {+atlas-cli+} telemetry does *not* track
43+
the values for the |api| keys and login credentials.
44+
- ``API key``
45+
46+
* - Details for commands you run. {+atlas-cli+} telemetry tracks
47+
the options you specify, but does *not* track the values.
48+
- ``timestamp: 2022-04-11T11:35:46.794119+01:00``
49+
``command: atlas cluster create``
50+
``--provider --region``
51+
52+
* - Performance information, such as the amount of time it takes for
53+
the {+atlas-cli+} to execute a command.
54+
- ``completion timestamp: 2022-04-11T11:35:49.456719+01:00``
55+
56+
* - Errors you encounter, including the command you run and the
57+
parameters you use.
58+
- ``atlas rgister``
59+
``Error: unknown command "rgister" for "atlas"``
60+
61+
Learn What the {+atlas-cli+} Doesn't Track
62+
------------------------------------------
63+
64+
{+atlas-cli+} telemetry *doesn't* track:
65+
66+
.. list-table::
67+
:header-rows: 1
68+
:widths: 60 40
69+
70+
* - Data
71+
- Example
72+
73+
* - PII and values that could potentially contain PII, including all
74+
free-text fields such as custom names or database user
75+
names.
76+
- ``--clusterName MyCluster``
77+
78+
* - |api| key values or |service| login credentials.
79+
- ``private_api_key abcdefghi123456789``
80+
81+
82+
Disable Telemetry for the {+atlas-cli+}
83+
---------------------------------------
84+
85+
To disable telemetry for the {+atlas-cli+}, run the following command
86+
in the terminal:
87+
88+
.. code-block:: sh
89+
90+
atlas config set telemetry_enabled false
91+
92+
You can also disable telemetry in the following ways:
93+
94+
- Navigate to the :ref:`configuration file <config-toml-location>` and
95+
enter ``telemetry_enabled = false``.
96+
- Set the :ref:`MONGODB_ATLAS_TELEMETRY_ENABLE environment variable
97+
<atlas-cli-env-vars>` to ``false``.
98+
99+
100+
Enable Telemetry for the {+atlas-cli+}
101+
--------------------------------------
102+
103+
The {+atlas-cli+} enables telemetry by default. If telemetry is
104+
currently disabled, you can enable telemetry by running the following
105+
command in the terminal:
106+
107+
.. code-block:: sh
108+
109+
atlas config set telemetry_enabled true
110+
111+
You can also enable telemetry in the following ways:
112+
113+
- Navigate to the :ref:`configuration file <config-toml-location>` and
114+
remove ``telemetry_enabled = false``.
115+
- Set the :ref:`MONGODB_ATLAS_TELEMETRY_ENABLE environment variable
116+
<atlas-cli-env-vars>` to ``true``.
117+
118+
119+
120+
121+
122+
123+
124+

0 commit comments

Comments
 (0)