2022-04-15 13:44:08 +00:00
---
title: "Traefik Data Collection Documentation"
description: "To learn more about how Traefik is being used and improve it, we collect anonymous usage statistics from running instances. Read the technical documentation."
---
2019-02-26 13:50:07 +00:00
# Data Collection
Understanding How Traefik is Being Used
{: .subtitle }
## Configuration Example
2023-03-29 15:16:05 +00:00
Understanding how you use Traefik is very important to us: it helps us improve the solution in many different ways.
For this very reason, the sendAnonymousUsage option is mandatory: we want you to take time to consider whether or not you wish to share anonymous data with us, so we can benefit from your experience and use cases.
2019-03-14 18:32:03 +00:00
2019-07-22 07:58:04 +00:00
!!! example "Enabling Data Collection"
2021-06-18 22:08:08 +00:00
2019-07-22 07:58:04 +00:00
```yaml tab="File (YAML)"
global:
# Send anonymous usage data
sendAnonymousUsage: true
2019-02-26 13:50:07 +00:00
```
2021-06-18 22:08:08 +00:00
```toml tab="File (TOML)"
[global]
# Send anonymous usage data
sendAnonymousUsage = true
```
2019-07-22 07:58:04 +00:00
```bash tab="CLI"
# Send anonymous usage data
--global.sendAnonymousUsage
```
2019-02-26 13:50:07 +00:00
## Collected Data
2023-03-29 15:16:05 +00:00
This feature comes from this [public proposal ](https://github.com/traefik/traefik/issues/2369 ).
2020-10-30 15:54:04 +00:00
2019-02-26 13:50:07 +00:00
In order to help us learn more about how Traefik is being used and improve it, we collect anonymous usage statistics from running instances.
Those data help us prioritize our developments and focus on what's important for our users (for example, which provider is popular, and which is not).
### What's collected / when ?
Once a day (the first call begins 10 minutes after the start of Traefik), we collect:
- the Traefik version number
- a hash of the configuration
2023-03-29 15:16:05 +00:00
- an **anonymized version** of the static configuration (token, username, password, URL, IP, domain, email, etc., are removed).
2019-02-26 13:50:07 +00:00
2019-09-23 12:32:04 +00:00
!!! info
2021-06-18 22:08:08 +00:00
2019-09-23 12:32:04 +00:00
- We do not collect the dynamic configuration information (routers & services).
- We do not collect this data to run advertising programs.
- We do not sell this data to third-parties.
2019-02-26 13:50:07 +00:00
2019-09-23 12:32:04 +00:00
### Example of Collected Data
2019-02-26 13:50:07 +00:00
2021-06-18 22:08:08 +00:00
```yaml tab="Original configuration"
entryPoints:
web:
address: ":80"
2019-09-23 12:32:04 +00:00
2021-06-18 22:08:08 +00:00
api: {}
2019-09-23 12:32:04 +00:00
2021-06-18 22:08:08 +00:00
providers:
docker:
endpoint: "tcp://10.10.10.10:2375"
exposedByDefault: true
swarmMode: true
2019-09-23 12:32:04 +00:00
2021-06-18 22:08:08 +00:00
tls:
ca: dockerCA
cert: dockerCert
key: dockerKey
insecureSkipVerify: true
2019-09-23 12:32:04 +00:00
```
2021-06-18 22:08:08 +00:00
```yaml tab="Resulting Obfuscated Configuration"
entryPoints:
web:
address: ":80"
2019-09-23 12:32:04 +00:00
2021-06-18 22:08:08 +00:00
api: {}
2019-09-23 12:32:04 +00:00
2021-06-18 22:08:08 +00:00
providers:
docker:
endpoint: "xxxx"
exposedByDefault: true
swarmMode: true
2019-09-23 12:32:04 +00:00
2021-06-18 22:08:08 +00:00
tls:
ca: xxxx
cert: xxxx
key: xxxx
insecureSkipVerify: true
2019-09-23 12:32:04 +00:00
```
2019-02-26 13:50:07 +00:00
## The Code for Data Collection
2020-09-16 13:46:04 +00:00
If you want to dig into more details, here is the source code of the collecting system: [collector.go ](https://github.com/traefik/traefik/blob/master/pkg/collector/collector.go )
2019-02-26 13:50:07 +00:00
2023-03-29 15:16:05 +00:00
By default, we anonymize all configuration fields, except fields tagged with `export=true` .