Explore: Unification of logs/metrics/traces user interface (#25890)
Removes "Metrics"/"Logs" mode switcher from Explore, allowing for both
metrics and logs queries at the same time.
Co-authored-by: kay delaney <kay@grafana.com>
(cherry picked from commit 64bc85963b)
This commit is contained in:
@@ -45,6 +45,14 @@ func (e *CloudWatchExecutor) executeLogActions(ctx context.Context, queryContext
|
||||
return nil
|
||||
}
|
||||
|
||||
if dataframe.Meta != nil {
|
||||
dataframe.Meta.PreferredVisualization = "logs"
|
||||
} else {
|
||||
dataframe.Meta = &data.FrameMeta{
|
||||
PreferredVisualization: "logs",
|
||||
}
|
||||
}
|
||||
|
||||
resultChan <- &tsdb.QueryResult{RefId: query.RefId, Dataframes: tsdb.NewDecodedDataFrames(data.Frames{dataframe})}
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user