mirror of https://github.com/grafana/grafana.git
[release-12.0.4] CloudMigrations: Report on prem event with grafana version (#109331)
CloudMigrations: Report on prem event with grafana version (#104515)
* grafana version in on prem event report
* store grafana version in cloud migration service
(cherry picked from commit ee99433c65
)
Co-authored-by: Dana Axinte <53751979+dana-axinte@users.noreply.github.com>
This commit is contained in:
parent
fd74988a1a
commit
3bc640a6bb
|
@ -81,6 +81,8 @@ type Service struct {
|
|||
api *api.CloudMigrationAPI
|
||||
tracer tracing.Tracer
|
||||
metrics *Metrics
|
||||
|
||||
grafanaVersion string
|
||||
}
|
||||
|
||||
var LogPrefix = "cloudmigration.service"
|
||||
|
@ -191,6 +193,8 @@ func ProvideService(
|
|||
}
|
||||
}
|
||||
|
||||
s.grafanaVersion = cfg.BuildVersion
|
||||
|
||||
return s, nil
|
||||
}
|
||||
|
||||
|
@ -854,9 +858,10 @@ func (s *Service) report(
|
|||
}
|
||||
|
||||
e := gmsclient.EventRequestDTO{
|
||||
Event: t,
|
||||
LocalID: id,
|
||||
UserUID: userUID,
|
||||
Event: t,
|
||||
LocalID: id,
|
||||
UserUID: userUID,
|
||||
GrafanaVersion: s.grafanaVersion,
|
||||
}
|
||||
|
||||
if d != 0 {
|
||||
|
|
|
@ -51,6 +51,7 @@ type EventRequestDTO struct {
|
|||
Error string `json:"error"`
|
||||
DurationIfFinished time.Duration `json:"duration"`
|
||||
UserUID string `json:"userUid"`
|
||||
GrafanaVersion string `json:"grafanaVersion"`
|
||||
}
|
||||
|
||||
type LocalEventType string
|
||||
|
|
Loading…
Reference in New Issue