Cloud monitoring: fix missing title and text from cloud monitoring annotations (#27187)
* cloudmonitoring: fix empty title and text annotation * cloudmonitoring: use metricQuery value
This commit is contained in:
@@ -302,7 +302,7 @@ func migrateLegacyQueryModel(query *tsdb.Query) {
|
||||
if mq == nil {
|
||||
migratedModel := simplejson.NewFromAny(map[string]interface{}{
|
||||
"queryType": metricQueryType,
|
||||
"metricQuery": query.Model,
|
||||
"metricQuery": query.Model.MustMap(),
|
||||
})
|
||||
query.Model = migratedModel
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user