From 8dcbab97b4d9cc668e2c01ef0029889fdae08583 Mon Sep 17 00:00:00 2001 From: Jason Blais <13119842+jasonblais@users.noreply.github.com> Date: Tue, 23 Jul 2019 08:42:04 -0400 Subject: [PATCH] Add telemetry for new cluster settings (#11677) Track if the default value is used for NetworkInterface, BindAddress and AdvertiseAddress. Do not track the actual value, as this could expose sensitive data of the system. --- app/diagnostics.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/diagnostics.go b/app/diagnostics.go index b9aa140bd4..688e7646f8 100644 --- a/app/diagnostics.go +++ b/app/diagnostics.go @@ -524,6 +524,9 @@ func (a *App) trackConfig() { a.SendDiagnostic(TRACK_CONFIG_CLUSTER, map[string]interface{}{ "enable": *cfg.ClusterSettings.Enable, + "network_interface": isDefault(*cfg.ClusterSettings.NetworkInterface, ""), + "bind_address": isDefault(*cfg.ClusterSettings.BindAddress, ""), + "advertise_address": isDefault(*cfg.ClusterSettings.AdvertiseAddress, ""), "use_ip_address": *cfg.ClusterSettings.UseIpAddress, "use_experimental_gossip": *cfg.ClusterSettings.UseExperimentalGossip, "read_only_config": *cfg.ClusterSettings.ReadOnlyConfig,