Explore: Do not send explicit maxDataPoints for logs. (#19235)

This commit is contained in:
Andrej Ocenas 2019-09-24 16:20:45 +02:00 committed by GitHub
parent bb0a438705
commit f203e82b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -466,8 +466,9 @@ export function runQueries(exploreId: ExploreId): ThunkResult<void> {
const queryOptions = {
minInterval,
// This is used for logs streaming for buffer size.
maxDataPoints: mode === ExploreMode.Logs ? 1000 : containerWidth,
// This is 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,
live,
showingGraph,
showingTable,