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:
Ato Araki
2020-09-08 13:18:41 +03:00
committed by GitHub
parent 6a9bfa19be
commit 561920f18b
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -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
}