Influx: Make max series limit configurable and show the limiting message if applied (#31025)
* Add configuration in ConfigEditor and default to 1000 * Show data in explore if any even if there is an error * Update pkg/tsdb/influxdb/flux/executor.go * Better handling of defaults * Add test for runQuery to show data even with error * Update public/app/store/configureStore.ts Co-authored-by: Giordano Ricci <gio.ricci@grafana.com> * Update public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> * Update tooltip * Update input * Lint fixes * Update snapshots * Update decorator tests Co-authored-by: Giordano Ricci <gio.ricci@grafana.com> Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
This commit is contained in:
co-authored by
Giordano Ricci
Ivana Huckova
parent
fd5fa402ab
commit
e0448513eb
@@ -85,7 +85,9 @@ func readDataFrames(result *api.QueryTableResult, maxPoints int, maxSeries int)
|
||||
}
|
||||
}
|
||||
|
||||
// Attach any errors (may be null)
|
||||
dr.Error = result.Err()
|
||||
// result.Err() is probably more important then the other errors
|
||||
if result.Err() != nil {
|
||||
dr.Error = result.Err()
|
||||
}
|
||||
return dr
|
||||
}
|
||||
|
||||
@@ -39,7 +39,9 @@ func Query(ctx context.Context, dsInfo *models.DataSource, tsdbQuery *tsdb.TsdbQ
|
||||
continue
|
||||
}
|
||||
|
||||
res := executeQuery(ctx, *qm, r, 50)
|
||||
// If the default changes also update labels/placeholder in config page.
|
||||
maxSeries := dsInfo.JsonData.Get("maxSeries").MustInt(1000)
|
||||
res := executeQuery(ctx, *qm, r, maxSeries)
|
||||
|
||||
tRes.Results[query.RefId] = backendDataResponseToTSDBResponse(&res, query.RefId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user