Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
6b0f56b7
Unverified
Commit
6b0f56b7
authored
Sep 09, 2020
by
Ryan McKinley
Committed by
GitHub
Sep 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InfluxDB: Alerting issue, reasonable defaults for interval and maxDataPoints (#27463)
parent
5520cd2c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
pkg/tsdb/influxdb/flux/query_models.go
+6
-0
No files found.
pkg/tsdb/influxdb/flux/query_models.go
View file @
6b0f56b7
...
@@ -83,6 +83,12 @@ func getQueryModelTSDB(query *tsdb.Query, timeRange *tsdb.TimeRange, dsInfo *mod
...
@@ -83,6 +83,12 @@ func getQueryModelTSDB(query *tsdb.Query, timeRange *tsdb.TimeRange, dsInfo *mod
To
:
endTime
,
To
:
endTime
,
}
}
model
.
MaxDataPoints
=
query
.
MaxDataPoints
model
.
MaxDataPoints
=
query
.
MaxDataPoints
if
model
.
MaxDataPoints
==
0
{
model
.
MaxDataPoints
=
10000
// 10k/series should be a reasonable place to abort!
}
model
.
Interval
=
time
.
Millisecond
*
time
.
Duration
(
query
.
IntervalMs
)
model
.
Interval
=
time
.
Millisecond
*
time
.
Duration
(
query
.
IntervalMs
)
if
model
.
Interval
.
Milliseconds
()
==
0
{
model
.
Interval
=
time
.
Millisecond
// 1ms
}
return
model
,
nil
return
model
,
nil
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment