mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Fix showing of results of queries in table (#24018)
* Fix: Show results of instant queries in Explore tables * Add PreferredVisualisationType to meta * Implement visualisation exception for Prometheus * Implement visualisation exception for Elastic
This commit is contained in:
@@ -189,6 +189,10 @@ export class PrometheusDatasource extends DataSourceApi<PromQuery, PromOptions>
|
||||
responseListLength,
|
||||
refId: target.refId,
|
||||
valueWithRefId: target.valueWithRefId,
|
||||
meta: {
|
||||
/** Fix for showing of Prometheus results in Explore table. We want to show result of instant query in table and the rest of time series in graph */
|
||||
preferredVisualisationType: query.instant ? 'table' : 'graph',
|
||||
},
|
||||
};
|
||||
const series = this.resultTransformer.transform(response, transformerOptions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user