diff --git a/internal/controller/argocd.go b/internal/controller/argocd.go index 57926bfa..95ef6153 100644 --- a/internal/controller/argocd.go +++ b/internal/controller/argocd.go @@ -179,7 +179,6 @@ func (clctrl *ClusterController) DeployRegistryApplication() error { return err } - // telemetry todo if !cl.ArgoCDCreateRegistryCheck { var kcfg *k8s.KubernetesClient diff --git a/internal/controller/state.go b/internal/controller/state.go index 335f33c4..8e7fb171 100644 --- a/internal/controller/state.go +++ b/internal/controller/state.go @@ -127,7 +127,7 @@ func (clctrl *ClusterController) StateStoreCredentials() error { if err != nil { msg := fmt.Sprintf("error creating google bucket %s: %s", clctrl.KubefirstStateStoreBucketName, err) log.Error() - telemetry.SendCountMetric(clctrl.Telemetry, metrics.StateStoreCreateFailed, msg) + telemetry.SendCountMetric(clctrl.Telemetry, metrics.StateStoreCredentialsCreateFailed, msg) return fmt.Errorf(msg) } @@ -142,7 +142,7 @@ func (clctrl *ClusterController) StateStoreCredentials() error { objst, err := vultrConf.CreateObjectStorage(clctrl.KubefirstStateStoreBucketName) if err != nil { - telemetry.SendCountMetric(clctrl.Telemetry, metrics.StateStoreCreateFailed, err.Error()) + telemetry.SendCountMetric(clctrl.Telemetry, metrics.StateStoreCredentialsCreateFailed, err.Error()) log.Error(err.Error()) return err } diff --git a/providers/vultr/delete.go b/providers/vultr/delete.go index a4c55478..2fefb50b 100644 --- a/providers/vultr/delete.go +++ b/providers/vultr/delete.go @@ -43,7 +43,7 @@ func DeleteVultrCluster(cl *pkgtypes.Cluster, segmentClient *telemetry.SegmentCl log.SetReportCaller(false) log.SetOutput(os.Stdout) - telemetry.SendCountMetric(segmentClient, metrics.ClusterInstallStarted, "") + telemetry.SendCountMetric(segmentClient, metrics.ClusterDeleteStarted, "") // Instantiate vultr config config := providerConfigs.GetConfig(cl.ClusterName, cl.DomainName, cl.GitProvider, cl.GitAuth.Owner, cl.GitProtocol, cl.CloudflareAuth.Token, "")