Configuring Telemetry Collection
Telemetry collection is enabled by default for The Things Stack Open Source distribution.
In order to disable it, set telemetry.enable
to false
in the CLI configuration:
telemetry:
enable: false
Telemetry collection is disabled by default for The Things Stack Enterprise distributions.
Initialization
When the CLI starts for the first time on a new machine or upon clearing the system cache, it creates a file on the system’s cache folder with the following data:
uid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
last_sent: 2023-08-02T16:45:53.742417-03:00
The uid
value is an UUID generated according to the specifications made on RFC 4122 and DCE 1.1.
This UUID is randomly generated and is the identifier for all data collected and transmitted by The Things Stack.
Telemetry Data Types
Below is a JSON object with an example of a full telemetry data message that is sent from the CLI:
{
"uid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"os": {
"operating_system": "linux",
"arch": "amd64",
"binary_version": "3.27.0-dev",
"golang_version": " go1.20.7"
},
"cli": {}, // An empty object for this field indicates that this data was sent by a CLI instance.
"entities_count": null // Not used by the CLI.
}
One such data object is sent every 24 hours. The purpose of each of these fields is listed below.
uid
: universal unique identifier attached to telemetry data sent by the CLIos
: basic information about the operating system of the machine which executes the CLIcli
: empty object signaling that the telemetry data is sent from a CLI