From 5a2ede80f91ec53c74b2d84234ee4ca4d9b63242 Mon Sep 17 00:00:00 2001 From: Aman Mangal Date: Wed, 23 Apr 2025 23:38:37 +0530 Subject: [PATCH] update the URL for sending telemetry --- dgraph/cmd/zero/zero.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dgraph/cmd/zero/zero.go b/dgraph/cmd/zero/zero.go index f1fdfac5aab..754cb433bc8 100644 --- a/dgraph/cmd/zero/zero.go +++ b/dgraph/cmd/zero/zero.go @@ -99,6 +99,8 @@ func (s *Server) Init() { } func (s *Server) periodicallyPostTelemetry() { + const scarfBaseUrlFmt = "https://hypermode.gateway.scarf.sh/dgraph-deployments/%v/%v/%v/%v/%v" + // sleep so that a leader is elected by this time time.Sleep(time.Minute) @@ -121,8 +123,8 @@ func (s *Server) periodicallyPostTelemetry() { numTablets += len(g.GetTablets()) } - url := fmt.Sprintf("https://dgraph.gateway.scarf.sh/%v/%v/%v/%v/%v", - x.Version(), runtime.GOOS, numAlphas, len(ms.GetZeros()), numTablets) + url := fmt.Sprintf(scarfBaseUrlFmt, x.Version(), + runtime.GOOS, numAlphas, len(ms.GetZeros()), numTablets) glog.Infof("Posting Telemetry data to [%v]", url) resp, err := http.Get(url)