mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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.
This commit is contained in:
committed by
Joram Wilander
parent
f4ef9cab5b
commit
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,
|
||||
|
||||
Reference in New Issue
Block a user