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.
Этот коммит содержится в:
Jason Blais
2019-07-23 08:42:04 -04:00
коммит произвёл Joram Wilander
родитель f4ef9cab5b
Коммит 8dcbab97b4

Просмотреть файл

@@ -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,