Skip to content

Commit

Permalink
PMM-13057 Add product family field.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Oct 22, 2024
1 parent dc47ad1 commit 8ed1997
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions managed/services/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,10 @@ func (s *Service) makeMetric(ctx context.Context) (*reporter.GenericReport, erro
_, distMethod, _ := s.dus.GetDistributionMethodAndOS()

return &reporter.GenericReport{
Id: uuid.New().String(),
CreateTime: timestamppb.New(time.Now()),
InstanceId: uuid.MustParse(serverID).String(),
Id: uuid.New().String(),
CreateTime: timestamppb.New(time.Now()),
InstanceId: uuid.MustParse(serverID).String(),
ProductFamily: reporter.ProductFamily_PRODUCT_FAMILY_PMM,
Metrics: []*reporter.GenericReport_Metric{
{Key: "PMMServerVersion", Value: s.pmmVersion},
{Key: "UpDuration", Value: durationpb.New(time.Since(s.start)).String()},
Expand Down

0 comments on commit 8ed1997

Please sign in to comment.