[release-11.6.5] CloudMigrations: Report on prem event with grafana version (#109332)

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:
grafana-delivery-bot[bot]
2025-08-07 15:10:57 +01:00
committed by GitHub
parent 4aef0067ea
commit 2dbf020ca9
2 changed files with 9 additions and 3 deletions
@@ -80,6 +80,8 @@ type Service struct {
api *api.CloudMigrationAPI
tracer tracing.Tracer
metrics *Metrics
grafanaVersion string
}
var LogPrefix = "cloudmigration.service"
@@ -190,6 +192,8 @@ func ProvideService(
}
}
s.grafanaVersion = cfg.BuildVersion
return s, nil
}
@@ -852,9 +856,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 {