mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 16:45:43 -06:00
Elastic: Limit the number of datapoints for the counts query (#21937)
This commit is contained in:
parent
165c3adf1d
commit
89d1ab37de
@ -428,9 +428,11 @@ export const runQueries = (exploreId: ExploreId): ThunkResult<void> => {
|
|||||||
|
|
||||||
const queryOptions: QueryOptions = {
|
const queryOptions: QueryOptions = {
|
||||||
minInterval,
|
minInterval,
|
||||||
// This is used for logs streaming for buffer size, with undefined it falls back to datasource config if it
|
// maxDataPoints is used in:
|
||||||
// supports that.
|
// Loki - used for logs streaming for buffer size, with undefined it falls back to datasource config if it supports that.
|
||||||
maxDataPoints: mode === ExploreMode.Logs ? undefined : containerWidth,
|
// Elastic - limits the number of datapoints for the counts query and for logs it has hardcoded limit.
|
||||||
|
// Influx - used to correctly display logs in graph
|
||||||
|
maxDataPoints: mode === ExploreMode.Logs && datasourceInstance.name === 'Loki' ? undefined : containerWidth,
|
||||||
liveStreaming: live,
|
liveStreaming: live,
|
||||||
showingGraph,
|
showingGraph,
|
||||||
showingTable,
|
showingTable,
|
||||||
|
Loading…
Reference in New Issue
Block a user