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
4436b8da
Unverified
Commit
4436b8da
authored
May 23, 2018
by
Marcus Efraimsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
elasticsearch: query interval override fix
parent
8870e3e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pkg/tsdb/elasticsearch/client/client.go
+1
-1
pkg/tsdb/elasticsearch/time_series_query.go
+1
-1
No files found.
pkg/tsdb/elasticsearch/client/client.go
View file @
4436b8da
...
...
@@ -104,7 +104,7 @@ func (c *baseClientImpl) GetTimeField() string {
}
func
(
c
*
baseClientImpl
)
GetMinInterval
(
queryInterval
string
)
(
time
.
Duration
,
error
)
{
return
tsdb
.
GetIntervalFrom
(
c
.
ds
,
simplejson
.
NewFromAny
(
map
[
string
]
string
{
return
tsdb
.
GetIntervalFrom
(
c
.
ds
,
simplejson
.
NewFromAny
(
map
[
string
]
interface
{}
{
"interval"
:
queryInterval
,
}),
5
*
time
.
Second
)
}
...
...
pkg/tsdb/elasticsearch/time_series_query.go
View file @
4436b8da
...
...
@@ -258,7 +258,7 @@ func (p *timeSeriesQueryParser) parse(tsdbQuery *tsdb.TsdbQuery) ([]*Query, erro
return
nil
,
err
}
alias
:=
model
.
Get
(
"alias"
)
.
MustString
(
""
)
interval
:=
model
.
Get
(
"interval"
)
.
MustString
()
interval
:=
strconv
.
FormatInt
(
q
.
IntervalMs
,
10
)
+
"ms"
queries
=
append
(
queries
,
&
Query
{
TimeField
:
timeField
,
...
...
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