Skip to content

Commit

Permalink
PXC-4234 Add telemetry topics (8.0) (#124)
Browse files Browse the repository at this point in the history
new file:   docs/telemetry.md
	modified:   mkdocs-base.yml
  • Loading branch information
patrickbirch authored Nov 1, 2023
1 parent 144edbf commit 87e364a
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/apt.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and on the [download page](https://www.percona.com/downloads/Percona-XtraDB-Clus
It is recommended to install Percona XtraDB Cluster from the official repository
using APT.

We gather [Telemetry data] in the Percona packages and Docker images.

## Prerequisites

* You need to have root access on the node where you will be installing Percona XtraDB Cluster (either logged in as a user with root privileges or be able to run commands with sudo).
Expand Down Expand Up @@ -111,3 +113,5 @@ During the installation, you are requested to provide a password for the `root`

After you install Percona XtraDB Cluster and stop the `mysql` service,
configure the node according to the procedure described in [Configuring Nodes for Write-Set Replication](configure-nodes.md#configure).

[Telemetry data]: telemetry.md
4 changes: 4 additions & 0 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ For more information about using Docker, see the [Docker Docs](https://docs.dock
sure that you are using the latest version of Docker. The ones
provided via `apt` and `yum` may be outdated and cause errors.

We gather [Telemetry data] in the Percona packages and Docker images.

!!! note

By default, Docker pulls the image from Docker Hub if the image is not
Expand Down Expand Up @@ -152,3 +154,5 @@ To verify the cluster is available, do the following:
+------------------------------+-------------------------------------------------+
59 rows in set (0.02 sec)
```

[Telemetry data]: telemetry.md
4 changes: 4 additions & 0 deletions docs/install-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Install Percona XtraDB Cluster on all hosts that you are planning to use as cluster nodes
and ensure that you have root access to the MySQL server on each one.

We gather [Telemetry data] in the Percona packages and Docker images.

It is recommended to install Percona XtraDB Cluster from official Percona software repositories
using the corresponding package manager for your system:

Expand Down Expand Up @@ -39,3 +41,5 @@ The version number in PXC releases contains the following components:

For example, version number *8.0.18-9.3* means that this is the third PXC
build based on Percona Server for MySQL 8.0.18-9.

[Telemetry data]: telemetry.md
53 changes: 53 additions & 0 deletions docs/telemetry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Telemetry on Percona XtraDB Cluster

Percona telemetry fills in the gaps in our understanding of how you use Percona XtraDB Cluster to improve our products. Participation in the anonymous program is optional. You can opt-out if you prefer to not share this information.

## What information is collected

At this time, telemetry is added only to the Percona packages and Docker images. Percona XtraDB Cluster collects only information about the installation environment. Future releases may add additional metrics.

Be assured that access to this raw data is rigorously controlled. Percona does not collect personal data. All data is anonymous and cannot be traced to a specific user. To learn more about our privacy practices, read our [Percona Privacy statement].

An example of the data collected is the following:

```JSON
[{"id" : "c416c3ee-48cd-471c-9733-37c2886f8231",
"product_family" : "PRODUCT_FAMILY_PXC",
"instanceId" : "6aef422e-56a7-4530-af9d-94cc02198343",
"createTime" : "2023-10-16T10:46:23Z",
"metrics":
[{"key" : "deployment","value" : "PACKAGE"},
{"key" : "pillar_version","value" : "8.0.34-26"},
{"key" : "OS","value" : "Oracle Linux Server 8.8"},
{"key" : "hardware_arch","value" : "x86_64 x86_64"}]}]
```

## Disable telemetry

Starting with Percona XtraDB Cluster 8.0.34-26-1, telemetry is enabled by default. If you decide not to send usage data to Percona, you can set the `PERCONA_TELEMETRY_DISABLE=1` environment variable for either the root user or in the operating system prior to the installation process.

=== "Debian-derived distribution"

Add the environment variable before the install process.

```{.bash data-prompt="$"}
$ sudo PERCONA_TELEMETRY_DISABLE=1 apt install percona-xtradb-cluster
```

=== "Red Hat-derived distribution"

Add the environment variable before the install process.

```{.bash data-prompt="$"}
$ sudo PERCONA_TELEMETRY_DISABLE=1 yum install percona-xtradb-cluster
```

=== "DOCKER"

Add the environment variable when running a command in a new container.

```{.bash data-prompt="$"}
$ docker run -d -e MYSQL_ROOT_PASSWORD=test1234# -e PERCONA_TELEMETRY_DISABLE=1 -e CLUSTER_NAME=pxc-cluster1 --name=pxc-node1 percona/percona-xtradb-cluster:8.0
```

[Percona Privacy statement]: https://www.percona.com/privacy-policy#h.e34c40q8sb1a
4 changes: 4 additions & 0 deletions docs/yum.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
A list of the supported platforms by products and versions
is available in [Percona Software and Platform Lifecycle](https://www.percona.com/services/policies/percona-software-platform-lifecycle#mysql).

We gather [Telemetry data] in the Percona packages and Docker images.

You can install Percona XtraDB Cluster with the following methods:

* Use the official repository using YUM
Expand Down Expand Up @@ -77,3 +79,5 @@ $ sudo service mysql stop
## Next steps

Configure the node according to the procedure described in [Configuring Nodes for Write-Set Replication](configure-nodes.md#configure).

[Telemetry data]: telemetry.md
3 changes: 2 additions & 1 deletion mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,12 @@ nav:
- proxysql-v2.md
- virtual-sandbox.md

- References:
- Reference:
- wsrep-status-index.md
- wsrep-system-index.md
- wsrep-provider-index.md
- wsrep-files-index.md
- telemetry.md
- faq.md
- glossary.md
- copyright-and-licensing-information.md
Expand Down

0 comments on commit 87e364a

Please sign in to comment.