Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

Commit daf80ef

Browse files
authored
Merge pull request #443 from ekinanp/analytics-docs
Update docs with analytics info
2 parents 51437bf + a13d1a5 commit daf80ef

File tree

4 files changed

+79
-1
lines changed

4 files changed

+79
-1
lines changed

docs/docs/index.html

+44
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ <h1>Wash Documentation</h1>
9191
<li><a href="/wash/docs/core_plugins">➠Core Plugins</a></li>
9292
<li><a href="/wash/docs/api">➠Server API</a></li>
9393
</ul></li>
94+
<li><a href="#analytics">Analytics</a>
95+
96+
<ul>
97+
<li><a href="#what-data-does-wash-collect">What data does Wash collect?</a></li>
98+
<li><a href="#why-does-wash-collect-data">Why does Wash collect data?</a></li>
99+
<li><a href="#how-can-i-opt-out-of-wash-data-collection">How can I opt out of Wash data collection?</a></li>
100+
</ul></li>
94101
</ul>
95102

96103
<h2 id="wash-commands">Wash Commands</h2>
@@ -443,6 +450,43 @@ <h3 id="entry-schemas">Entry Schemas</h3>
443450

444451
<p>Entry schemas are also useful for optimizing <code>find</code>, especially when <code>find</code> is used for metadata filtering. Without entry schemas, for example, an EC2 instance query like <code>find aws -meta '.tags[?]' .key termination_date</code> would cause <code>find</code> to recurse into every entry in the <code>aws</code> plugin, including non-EC2 instance entries like S3 objects. With entry schemas, however, <code>find</code> would only recurse into those entries that will eventually lead to an EC2 instance. The latter is a significantly faster (and less expensive) operation, especially for large infrastructures.</p>
445452

453+
<h2 id="analytics">Analytics</h2>
454+
455+
<p>Wash collects anonymous data about how you use it. You can opt out of providing this data.</p>
456+
457+
<h3 id="what-data-does-wash-collect">What data does Wash collect?</h3>
458+
459+
<ul>
460+
<li>Version of Wash</li>
461+
<li>User locale</li>
462+
<li>Architecture</li>
463+
<li>Method invocations (for core plugin entries only)
464+
465+
<ul>
466+
<li>This includes any invocation of the <code>List</code>, <code>Exec</code>, <code>Read</code>, and <code>Stream</code> primitives</li>
467+
<li>Also includes the entry&rsquo;s plugin</li>
468+
</ul></li>
469+
</ul>
470+
471+
<p>This data is associated with Bolt analytics&rsquo; UUID (if available); otherwise, the data is associated with a random, non-identifiable user UUID.</p>
472+
473+
<h3 id="why-does-wash-collect-data">Why does Wash collect data?</h3>
474+
475+
<p>Wash collects data to help us understand how it&rsquo;s being used and make decisions about how to improve it.</p>
476+
477+
<h3 id="how-can-i-opt-out-of-wash-data-collection">How can I opt out of Wash data collection?</h3>
478+
479+
<p>To disable the collection of analytics data add the following line to <code>~/.puppetlabs/wash/analytics.yaml</code>:</p>
480+
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
481+
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
482+
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
483+
</span></pre></td>
484+
<td style="vertical-align:top;padding:0;margin:0;border:0;">
485+
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">disabled: true</pre></td></tr></table>
486+
</div>
487+
</div>
488+
<p>You can also disable the collection of analytics data by setting the <code>WASH_DISABLE_ANALYTICS</code> environment variable to <code>true</code> before starting up the Wash daemon.</p>
489+
446490
</article>
447491

448492

docs/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ <h2 id="getting-started">Getting started</h2>
102102

103103
<p>At this point, if you haven&rsquo;t already, you should start some resources that Wash can actually introspect. Otherwise, as Han Solo would say, &ldquo;this is going to be a real short trip&rdquo;. So fire up some Docker containers, create some EC2 instances, toss some files into S3, launch a Kubernetes pod, etc. We&rsquo;ve also provided a <a href="#wash-by-example">guided tour</a> that includes a Docker application.</p>
104104

105+
<p><strong>NOTE:</strong> Wash collects anonymous data about how you use it. See the <a href="/wash/docs#analytics">analytics docs</a> for more details.</p>
106+
105107
<h3 id="known-issues">Known issues</h3>
106108

107109
<p>Wash uses your system shell to provide the shell environment. It determines this using the SHELL environment variable or falls back to <code>/bin/sh</code>, so if you&rsquo;d like to specify a particular shell set the SHELL environment variable before starting Wash.</p>

website/content/_index.md

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Wash is distributed as a single binary, and the only prerequisite is [`libfuse`]
4848

4949
At this point, if you haven't already, you should start some resources that Wash can actually introspect. Otherwise, as Han Solo would say, "this is going to be a real short trip". So fire up some Docker containers, create some EC2 instances, toss some files into S3, launch a Kubernetes pod, etc. We've also provided a [guided tour](#wash-by-example) that includes a Docker application.
5050

51+
**NOTE:** Wash collects anonymous data about how you use it. See the [analytics docs](/wash/docs#analytics) for more details.
52+
5153
### Known issues
5254

5355
Wash uses your system shell to provide the shell environment. It determines this using the SHELL environment variable or falls back to `/bin/sh`, so if you'd like to specify a particular shell set the SHELL environment variable before starting Wash.

website/content/docs/_index.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ title= "Wash Documentation"
2929
* [➠External plugins]
3030
* [➠Core Plugins]
3131
* [➠Server API]
32+
* [Analytics](#analytics)
33+
* [What data does Wash collect?](#what-data-does-wash-collect)
34+
* [Why does Wash collect data?](#why-does-wash-collect-data)
35+
* [How can I opt out of Wash data collection?](#how-can-i-opt-out-of-wash-data-collection)
3236

3337
## Wash Commands
3438

@@ -293,4 +297,30 @@ docker
293297

294298
Every node must have a label. The `[]` are printed for non-singleton nodes; they imply multiple instances of this thing. For example, `[container]` means that there will be multiple `container` instances under the `containers` directory. Similarly, `containers` means that there will be only one `containers` directory (i.e. that `containers` is a singleton). Singleton entries should typically use the entry's name as the label.
295299

296-
Entry schemas are also useful for optimizing `find`, especially when `find` is used for metadata filtering. Without entry schemas, for example, an EC2 instance query like `find aws -meta '.tags[?]' .key termination_date` would cause `find` to recurse into every entry in the `aws` plugin, including non-EC2 instance entries like S3 objects. With entry schemas, however, `find` would only recurse into those entries that will eventually lead to an EC2 instance. The latter is a significantly faster (and less expensive) operation, especially for large infrastructures.
300+
Entry schemas are also useful for optimizing `find`, especially when `find` is used for metadata filtering. Without entry schemas, for example, an EC2 instance query like `find aws -meta '.tags[?]' .key termination_date` would cause `find` to recurse into every entry in the `aws` plugin, including non-EC2 instance entries like S3 objects. With entry schemas, however, `find` would only recurse into those entries that will eventually lead to an EC2 instance. The latter is a significantly faster (and less expensive) operation, especially for large infrastructures.
301+
302+
## Analytics
303+
304+
Wash collects anonymous data about how you use it. You can opt out of providing this data.
305+
306+
### What data does Wash collect?
307+
* Version of Wash
308+
* User locale
309+
* Architecture
310+
* Method invocations (for core plugin entries only)
311+
* This includes any invocation of the `List`, `Exec`, `Read`, and `Stream` primitives
312+
* Also includes the entry's plugin
313+
314+
This data is associated with Bolt analytics' UUID (if available); otherwise, the data is associated with a random, non-identifiable user UUID.
315+
316+
### Why does Wash collect data?
317+
Wash collects data to help us understand how it's being used and make decisions about how to improve it.
318+
319+
### How can I opt out of Wash data collection?
320+
To disable the collection of analytics data add the following line to `~/.puppetlabs/wash/analytics.yaml`:
321+
322+
```
323+
disabled: true
324+
```
325+
326+
You can also disable the collection of analytics data by setting the `WASH_DISABLE_ANALYTICS` environment variable to `true` before starting up the Wash daemon.

0 commit comments

Comments
 (0)