Skip to content

Commit

Permalink
Revert "fix(telemetry): Track enterprise feature usage (#7495)"
Browse files Browse the repository at this point in the history
This reverts commit 1cabd86.
  • Loading branch information
ahsanbarkati committed Mar 15, 2021
1 parent 901edbd commit 5cc346c
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,26 @@ import (
"time"

"github.com/dgraph-io/dgraph/protos/pb"
"github.com/dgraph-io/dgraph/worker"
"github.com/dgraph-io/dgraph/x"
"github.com/golang/glog"
"github.com/pkg/errors"
)

// Telemetry holds information about the state of the zero and alpha server.
type Telemetry struct {
Arch string `json:",omitempty"`
Cid string `json:",omitempty"`
ClusterSize int `json:",omitempty"`
DiskUsageMB int64 `json:",omitempty"`
NumAlphas int `json:",omitempty"`
NumGroups int `json:",omitempty"`
NumTablets int `json:",omitempty"`
NumZeros int `json:",omitempty"`
OS string `json:",omitempty"`
SinceHours int `json:",omitempty"`
Version string `json:",omitempty"`
NumGraphQLPM uint64 `json:",omitempty"`
NumGraphQL uint64 `json:",omitempty"`
EEFeaturesList []string `json:",omitempty"`
Arch string `json:",omitempty"`
Cid string `json:",omitempty"`
ClusterSize int `json:",omitempty"`
DiskUsageMB int64 `json:",omitempty"`
NumAlphas int `json:",omitempty"`
NumGroups int `json:",omitempty"`
NumTablets int `json:",omitempty"`
NumZeros int `json:",omitempty"`
OS string `json:",omitempty"`
SinceHours int `json:",omitempty"`
Version string `json:",omitempty"`
NumGraphQLPM uint64 `json:",omitempty"`
NumGraphQL uint64 `json:",omitempty"`
}

const url = "https://ping.dgraph.io/3.0/projects/5b809dfac9e77c0001783ad0/events"
Expand Down Expand Up @@ -89,7 +87,6 @@ func NewAlpha(ms *pb.MembershipState) *Telemetry {

// Post reports the Telemetry to the stats server.
func (t *Telemetry) Post() error {
t.EEFeaturesList = worker.GetEEFeaturesList()
data, err := json.Marshal(t)
if err != nil {
return err
Expand Down

0 comments on commit 5cc346c

Please sign in to comment.