Consul
Consul product telemetry
This topic provides an overview of Consul's product telemetry features, including how we collect data, how to opt-in to anonymized data collection, and how to integrate Consul with external providers such as Telegraf and Grafana.
Telemetry in Consul
Consul agents generate metrics about their operations based the performance of different libraries and subsystems. For example, operations to maintain cluster consensus are controlled by the Raft library, which exposes cluster leadership information on an agent. You can integrate Consul with telemetry tools such as AppDynamics CNS and Telegraf, or use Grafana dashboards to monitor both Consul operations and service mesh performance.
To learn how to use Consul's telemetry to monitor your cluster's operations, including what metrics to look at and why they are important, refer to Consul agent telemetry.
Opt-in to data reporting
We collect telemetry data about Consul's cluster operations to help us improve our software. This feature is disabled in Consul by default. To enable telemetry reporting, use the product usage configuration entry.
product-usage.hcl
Kind = "product-usage"
Name = "global"
Enabled = true
Reporting {
Mode = "connected"
}
Use the consul config write CLI command to apply the configuration to your cluster.
$ consul config write product-usage.hcl
Your data and privacy
After you opt-in to telemetry reporting, we collect anonymized data about your cluster's operations and aggregate it for analysis. This data helps us understand how you use Consul so that we can improve the software with each subsequent release. Examples of the data we collect include:
- How many Consul server and client agents run in a cluster
- How many services the API gateway routes for the datacenter
- How often the gossip key is rotated
- Whether the audit log feature is enabled
We never collect personal or sensitive information. Telemetry reporting does not access any of the following Personally Identifiable Information (PII) or user data:
- User names
- Email addresses
- Individual IP addresses
- Hostnames
- Names of services, namespaces, partitions, or nodes
- KV entries
- Contents of audit logs
- Contents of configuration files
For a complete list of the data we collect, refer to Consul agent telemetry reporting reference.